Repository navigation
How to override the default model when using a third-party Anthropic-compatible API? #997
Replies: 1 comment
|
The model comes from Claude Code's If you run a local model, you could also try https://github.com/llmmanorg/llmman, whose |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I know we can use third party api by set environment variables:
ANTHROPIC_BASE_URL=https://your-api-endpoint.com
ANTHROPIC_AUTH_TOKEN=your-token-here
However, the bot always returns the following error:
"There's an issue with the selected model (claude-sonnet-4-6). It may not exist or you may not have access to it. Run --model to pick a different model."
It seems the system is hardcoded to use claude-sonnet-4-6 as a fallback. I have already tried adding ANTHROPIC_MODEL, CLAUDE_MODEL, and AGENT_MODEL to my .env file, but none of them seem to override the default model.
Could you please clarify which environment variable should be used to specify the model name for third-party endpoints?
I am new to this, please help.
Thanks!
All reactions