Skip to content

Commit 1592ebe

Browse files
Revert unintended changes in sdk/guides/agent-server/docker-sandbox.mdx to match main
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent d5e2d38 commit 1592ebe

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

‎sdk/guides/agent-server/docker-sandbox.mdx‎

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ assert api_key is not None, "LLM_API_KEY environment variable is not set."
4444
llm = LLM(
4545
usage_id="agent",
4646
model="litellm_proxy/anthropic/claude-sonnet-4-5-20250929",
47-
base_url=os.getenv("LLM_BASE_URL"),
47+
base_url="https://llm-proxy.eval.all-hands.dev",
4848
api_key=SecretStr(api_key),
4949
)
5050

@@ -258,30 +258,19 @@ assert api_key is not None, "LLM_API_KEY environment variable is not set."
258258
llm = LLM(
259259
usage_id="agent",
260260
model="litellm_proxy/anthropic/claude-sonnet-4-5-20250929",
261-
base_url=os.getenv("LLM_BASE_URL"),
261+
base_url="https://llm-proxy.eval.all-hands.dev",
262262
api_key=SecretStr(api_key),
263263
)
264264

265265
# Create a Docker-based remote workspace with extra ports for VSCode access
266-
267-
268-
def detect_platform():
269-
"""Detects the correct Docker platform string."""
270-
import platform
271-
272-
machine = platform.machine().lower()
273-
if "arm" in machine or "aarch64" in machine:
274-
return "linux/arm64"
275-
return "linux/amd64"
276-
277-
278266
with DockerWorkspace(
279267
base_image="nikolaik/python-nodejs:python3.12-nodejs22",
280268
host_port=18010,
281-
platform=detect_platform(),
269+
# TODO: Change this to your platform if not linux/arm64
270+
platform="linux/arm64",
282271
extra_ports=True, # Expose extra ports for VSCode and VNC
283272
) as workspace:
284-
"""Extra ports allows you to access VSCode at localhost:18011"""
273+
"""Extra ports allows you to access VSCode at localhost:8011"""
285274

286275
# Create agent
287276
agent = get_default_agent(
@@ -452,7 +441,7 @@ assert api_key is not None, "LLM_API_KEY environment variable is not set."
452441
llm = LLM(
453442
usage_id="agent",
454443
model="litellm_proxy/anthropic/claude-sonnet-4-5-20250929",
455-
base_url=os.getenv("LLM_BASE_URL"),
444+
base_url="https://llm-proxy.eval.all-hands.dev",
456445
api_key=SecretStr(api_key),
457446
)
458447

@@ -469,6 +458,7 @@ def detect_platform():
469458
with DockerWorkspace(
470459
base_image="nikolaik/python-nodejs:python3.12-nodejs22",
471460
host_port=8010,
461+
# TODO: Change this to your platform if not linux/arm64
472462
platform=detect_platform(),
473463
extra_ports=True, # Expose extra ports for VSCode and VNC
474464
) as workspace:
@@ -502,7 +492,7 @@ with DockerWorkspace(
502492
logger.info(f"\n📋 Conversation ID: {conversation.state.id}")
503493
logger.info("📝 Sending first message...")
504494
conversation.send_message(
505-
"Could you go to https://openhands.dev/ blog page and summarize main "
495+
"Could you go to https://all-hands.dev/ blog page and summarize main "
506496
"points of the latest blog?"
507497
)
508498
conversation.run()

0 commit comments

Comments
 (0)