mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
chance default model to 3.5 sonnet new (#4612)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
parent
e231776be8
commit
997dc80d18
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user