Merge branch 'main' of github.com:xlang-ai/OSWorld

This commit is contained in:
yuanmengqi
2025-07-26 07:28:39 +00:00

View File

@@ -99,7 +99,8 @@ class DockerVMManager(VMManager):
def check_and_clean(self):
pass
def delete_vm(self, vm_path):
def delete_vm(self, vm_path, region=None, **kwargs):
# Fixed: Added region and **kwargs parameters for interface compatibility
pass
def initialize_registry(self):
@@ -108,7 +109,8 @@ class DockerVMManager(VMManager):
def list_free_vms(self):
return os.path.join(VMS_DIR, DOWNLOADED_FILE_NAME)
def occupy_vm(self, vm_path):
def occupy_vm(self, vm_path, pid, region=None, **kwargs):
# Fixed: Added pid, region and **kwargs parameters for interface compatibility
pass
def get_vm_path(self, os_type, region, screen_size=(1920, 1080), **kwargs):