feat: add GLM/alternative API support via environment variables
Seems you need to adjust more code, with all the ANTHROPIC_ env vars set, set coder still uses the model: claude-opus-4-5-20251101. Here my .env:
NTHROPIC_BASE_URL=https://api.synthetic.new/anthropic # What server to talk to instead of the default
ANTHROPIC_AUTH_TOKEN=syn_xyz # Auth key
# Model configuration
ANTHROPIC_DEFAULT_OPUS_MODEL=hf:MiniMaxAI/MiniMax-M2.1 # The model to use for opus plan mode
ANTHROPIC_DEFAULT_SONNET_MODEL=hf:MiniMaxAI/MiniMax-M2.1 # The model to use for most tasks
ANTHROPIC_DEFAULT_HAIKU_MODEL=hf:MiniMaxAI/MiniMax-M2.1 # Primarily used for summarization
And in the chat interface, I see the error: API Error: 400 {"error":"Your model name should start with an hf: prefix; for example: \"hf:claude-opus-4-5-20251101\""}
Great project, really like the nice retro ui interface :)