Bug Description
When configuring Anthropic as the API provider with a custom base URL (e.g., http://localhost:3000/api) and entering a custom model name in the model field, the custom model name is ignored. Instead, the request always sends claude-sonnet-4-5 as the model identifier, regardless of what was entered.
Steps to Reproduce
- Open Roo Code settings
- Select Anthropic as the API Provider
- Set a custom Base URL (e.g.,
http://localhost:3000/api)
- Enter a custom model name in the model field (e.g.,
qwen/qwen3.6-plus or any other value)
- Save and start a conversation
- Observe the outgoing request body
Expected Behavior
The request body sent to the custom endpoint should contain the custom model name:
{
"model": "qwen/qwen3.6-plus",
...
}
Actual Behavior
The request body always contains the hardcoded default:
{
"model": "claude-sonnet-4-5",
...
}
Evidence
Captured request body from Roo Code hitting a local Anthropic-compatible proxy:
{
"model": "claude-sonnet-4-5",
"max_tokens": 16384,
"temperature": 1,
"thinking": {
"type": "enabled",
"budget_tokens": 8192
},
...
}
The model field is always claude-sonnet-4-5 regardless of the custom model name entered in settings.
Environment
- OS: Windows 11
- VS Code version: latest
- Roo Code version: latest
- API Provider: Anthropic (custom base URL)
Bug Description
When configuring Anthropic as the API provider with a custom base URL (e.g.,
http://localhost:3000/api) and entering a custom model name in the model field, the custom model name is ignored. Instead, the request always sendsclaude-sonnet-4-5as the model identifier, regardless of what was entered.Steps to Reproduce
http://localhost:3000/api)qwen/qwen3.6-plusor any other value)Expected Behavior
The request body sent to the custom endpoint should contain the custom model name:
{ "model": "qwen/qwen3.6-plus", ... }Actual Behavior
The request body always contains the hardcoded default:
{ "model": "claude-sonnet-4-5", ... }Evidence
Captured request body from Roo Code hitting a local Anthropic-compatible proxy:
{ "model": "claude-sonnet-4-5", "max_tokens": 16384, "temperature": 1, "thinking": { "type": "enabled", "budget_tokens": 8192 }, ... }The
modelfield is alwaysclaude-sonnet-4-5regardless of the custom model name entered in settings.Environment