π OpenHands: AI-Driven Development
fix: change default RUN_AS_DEVIN to true and change some network setting (#895)
Yufan Song6e566dd21dc4
diff --git a/opendevin/config.py b/opendevin/config.pyindex bde1959b1a..7248b57e3b 100644--- a/opendevin/config.py+++ b/opendevin/config.py@@ -14,7 +14,7 @@ DEFAULT_CONFIG: dict = {ConfigType.WORKSPACE_DIR: os.path.join(os.getcwd(), 'workspace'),ConfigType.LLM_MODEL: 'gpt-3.5-turbo-1106',ConfigType.SANDBOX_CONTAINER_IMAGE: 'ghcr.io/opendevin/sandbox',- ConfigType.RUN_AS_DEVIN: 'false',+ ConfigType.RUN_AS_DEVIN: 'true',ConfigType.LLM_EMBEDDING_MODEL: 'local',ConfigType.LLM_NUM_RETRIES: 6,ConfigType.LLM_COOLDOWN_TIME: 1,diff --git a/opendevin/sandbox/sandbox.py b/opendevin/sandbox/sandbox.pyindex 494d55073b..edc6689927 100644--- a/opendevin/sandbox/sandbox.py+++ b/opendevin/sandbox/sandbox.py@@ -296,8 +296,8 @@ class DockerInteractive(CommandExecutor):self.container = docker_client.containers.run(self.container_image,# only allow connections from localhost- command="/usr/sbin/sshd -D -p 2222 -o 'ListenAddress=127.0.0.1'",- network_mode='host',+ command="/usr/sbin/sshd -D -p 2222 -o 'ListenAddress=0.0.0.0'",+ ports={'2222/tcp': 2222},working_dir='/workspace',name=self.container_name,hostname='opendevin_sandbox',