-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: Add Claude Sonnet 4.5 1M context window support for Claude Code… #8586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,15 @@ export const claudeCodeModels = { | |
| supportsReasoningBudget: false, | ||
| requiredReasoningBudget: false, | ||
| }, | ||
| "claude-sonnet-4-5-20250929[1m]": { | ||
| ...anthropicModels["claude-sonnet-4-5"], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor: Consider adding a test case for the new 1M context model in
|
||
| contextWindow: 1_000_000, // 1M token context window (requires [1m] suffix) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Major: Missing pricing information for 1M context. The base
The current implementation inherits the base pricing ($3/$15) which is incorrect for 1M context usage. You should either:
|
||
| supportsImages: false, | ||
| supportsPromptCache: true, // Claude Code does report cache tokens | ||
| supportsReasoningEffort: false, | ||
| supportsReasoningBudget: false, | ||
| requiredReasoningBudget: false, | ||
| }, | ||
| "claude-sonnet-4-20250514": { | ||
| ...anthropicModels["claude-sonnet-4-20250514"], | ||
| supportsImages: false, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Model ID naming inconsistency. The model ID
"claude-sonnet-4-5-20250929[1m]"includes a date (20250929) that doesn't exist in the base anthropic models. The base model being spread is"claude-sonnet-4-5"(no date), not"claude-sonnet-4-5-20250929".This creates confusion because:
"claude-sonnet-4-5"base modelConsider either:
"claude-sonnet-4-5[1m]"to match the base model name, OR