chance default model to 3.5 sonnet new (#4612)

Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
Robert Brennan 2024-10-29 13:43:25 -04:00 committed by GitHub
parent e231776be8
commit 997dc80d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 5 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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
```

View File

@ -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

View File

@ -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
```