Skip to content

πŸ™Œ OpenHands: AI-Driven Development

chance default model to 3.5 sonnet new (#4612)

Robert Brennan997dc80d1888
diff --git a/frontend/src/services/settings.ts b/frontend/src/services/settings.ts
index 0e0a2f20da..63efaedc7a 100644
--- a/frontend/src/services/settings.ts
+++ b/frontend/src/services/settings.ts
@@ -11,7 +11,7 @@ export type Settings = {
};
export const DEFAULT_SETTINGS: Settings = {
- LLM_MODEL: "openai/gpt-4o",
+ LLM_MODEL: "anthropic/claude-3-5-sonnet-20241022",
LLM_BASE_URL: "",
AGENT: "CodeActAgent",
LANGUAGE: "en",
diff --git a/frontend/src/utils/verified-models.ts b/frontend/src/utils/verified-models.ts
index 555de8acfa..432a543912 100644
--- a/frontend/src/utils/verified-models.ts
+++ b/frontend/src/utils/verified-models.ts
@@ -19,6 +19,7 @@ export const VERIFIED_OPENAI_MODELS = [
export const VERIFIED_ANTHROPIC_MODELS = [
"claude-2",
"claude-2.1",
+ "claude-3-5-sonnet-20241022",
"claude-3-5-sonnet-20240620",
"claude-3-haiku-20240307",
"claude-3-opus-20240229",
diff --git a/openhands/agenthub/browsing_agent/README.md b/openhands/agenthub/browsing_agent/README.md
index 9f8ca36277..f134212159 100644
--- a/openhands/agenthub/browsing_agent/README.md
+++ b/openhands/agenthub/browsing_agent/README.md
@@ -12,5 +12,5 @@ poetry run python ./openhands/core/main.py \
-i 10 \
-t "tell me the usa's president using google search" \
-c BrowsingAgent \
- -m gpt-4o-2024-05-13
+ -m claude-3-5-sonnet-20241022
```
diff --git a/openhands/core/config/llm_config.py b/openhands/core/config/llm_config.py
index 7ad6476d7c..2bcc0bd391 100644
--- a/openhands/core/config/llm_config.py
+++ b/openhands/core/config/llm_config.py
@@ -45,7 +45,7 @@ class LLMConfig:
supports_function_calling: Whether the model supports function calling.
"""
- model: str = 'gpt-4o'
+ model: str = 'claude-3-5-sonnet-20241022'
api_key: str | None = None
base_url: str | None = None
api_version: str | None = None
diff --git a/openhands/server/README.md b/openhands/server/README.md
index b2ed7e7aa4..c2f104f040 100644
--- a/openhands/server/README.md
+++ b/openhands/server/README.md
@@ -40,8 +40,8 @@ websocat ws://127.0.0.1:3000/ws
## Supported Environment Variables
```sh
-LLM_API_KEY=sk-... # Your OpenAI API Key
-LLM_MODEL=gpt-4o # Default model for the agent to use
+LLM_API_KEY=sk-... # Your Anthropic API Key
+LLM_MODEL=claude-3-5-sonnet-20241022 # Default model for the agent to use
WORKSPACE_BASE=/path/to/your/workspace # Default absolute path to workspace
```