Skip to content

feat: add sonnet[1m] to hardcoded fallback model list#1107

Open
zhangyanbo2007 wants to merge 1 commit into
chenhg5:mainfrom
zhangyanbo2007:feat/sonnet-1m-fallback
Open

feat: add sonnet[1m] to hardcoded fallback model list#1107
zhangyanbo2007 wants to merge 1 commit into
chenhg5:mainfrom
zhangyanbo2007:feat/sonnet-1m-fallback

Conversation

@zhangyanbo2007
Copy link
Copy Markdown

Problem

The available models fallback list in agent/claudecode/claudecode.go included opus[1m] but was missing sonnet[1m], making it impossible to use 1M context with Sonnet models when config.toml has no explicit models configured and the API fails to return model aliases.

Solution

Add sonnet[1m] to the hardcoded fallback model list, one-line fix.

Test plan

  • Build passes: go build ./...
  • cc-connect runs with sonnet[1m] model selectable via config

🤖 Generated with Claude Code

The available models fallback list included opus[1m] but was missing
sonnet[1m], making it impossible to use 1M context with Sonnet models
when config.toml has no explicit models configured and the API fails to
return model aliases.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Owner

@chenhg5 chenhg5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. CI green, well-structured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants