-
-
Notifications
You must be signed in to change notification settings - Fork 965
Open
Description
Bug Description
When selecting OpenRouter as the LLM provider during the dashboard setup wizard, the agent is created with model ID claude-sonnet-4-20250514 which is not a valid OpenRouter model ID.
OpenRouter requires the format provider/model-name (e.g., anthropic/claude-sonnet-4-20250514 or deepseek/deepseek-chat-v3-0324).
Steps to Reproduce
- Fresh install OpenFang v0.3.2
- Set
OPENROUTER_API_KEYin.env - Set
default_model.provider = "openrouter"inconfig.toml - Open dashboard and go through setup
- Select OpenRouter as provider
- Send a test message
Expected Behavior
The dashboard should use the correct OpenRouter model ID format (e.g., anthropic/claude-sonnet-4-20250514 or offer a valid model dropdown).
Actual Behavior
API error (400): {"error":{"message":"claude-sonnet-4-20250514 is not a valid model ID","code":400}}
Agent enters panic state and becomes unresponsive.
Environment
- OpenFang v0.3.2
- Ubuntu 24.04 (Hetzner VPS)
- OpenRouter provider with valid API key (test-key passes OK)
Logs
WARN openfang_runtime::agent_loop: LLM error classified: LLM request failed.
category=Format retryable=false
raw=API error (400): {"error":{"message":"claude-sonnet-4-20250514 is not a valid model ID","code":400}}
WARN openfang_kernel::supervisor: Agent panic recorded total_panics=2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels