-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add Claude 4.5 Sonnet model across all providers #8368
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
Conversation
- Added claude-4.5-sonnet to Anthropic provider with 1M context beta support - Added claude-4.5-sonnet to Claude Code provider - Added anthropic.claude-4.5-sonnet-v1:0 to AWS Bedrock provider - Added claude-4.5-sonnet to Google Vertex AI provider - Added comprehensive test coverage for the new model - Updated UI to support 1M context beta flag for Claude 4.5 Sonnet
…er use, and reasoning budget sets
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.
I found some issues that need attention. Please see inline comments for details.
| apiModelId: "claude-4.5-sonnet", | ||
| anthropicBeta1MContext: true, | ||
| }) | ||
| const model = handler.getModel() |
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.
[P2] Strengthen the 1M-context assertions to validate cache pricing overrides as well. Since getModel() applies the first tier (contextWindow, inputPrice, outputPrice, cacheWritesPrice, cacheReadsPrice), consider also asserting cacheWritesPrice and cacheReadsPrice after enabling anthropicBeta1MContext to catch regressions in tier merging.
| // Check if the current model supports 1M context beta | ||
| const supports1MContextBeta = selectedModel?.id === "claude-sonnet-4-20250514" | ||
| const supports1MContextBeta = | ||
| selectedModel?.id === "claude-sonnet-4-20250514" || selectedModel?.id === "claude-4.5-sonnet" |
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.
[P3] Avoid hardcoding model IDs for showing the 1M context beta toggle. Derive this from the presence of a tier with contextWindow >= 1_000_000 on the selected model to keep the UI resilient to future model IDs.
| selectedModel?.id === "claude-sonnet-4-20250514" || selectedModel?.id === "claude-4.5-sonnet" | |
| const supports1MContextBeta = !!selectedModel?.info?.tiers?.some(t => (t.contextWindow ?? 0) >= 1_000_000) |
* fix: identify mcp and slash command config path in multiple folder workspace (RooCodeInc#6904) * fix: resolve CI e2e test ETIMEDOUT errors when downloading VS Code (RooCodeInc#7583) * fix: Tackling Race/State condition issue by Changing the Code Design for Gemini Grounding Sources (RooCodeInc#7434) Co-authored-by: daniel-lxs <[email protected]> Co-authored-by: Matt Rubens <[email protected]> * fix: preserve context by retrying with full conversation on invalid previous_response_id (RooCodeInc#7714) * chore: add changeset for v3.26.8 (RooCodeInc#7715) * feat(checkpoints): create checkpoint when user sends a message (RooCodeInc#7713) * feat(checkpoints): create checkpoint on user message send * fix(checkpoints): suppress implicit user-message checkpoint row; keep current checkpoint updated without a chat row * Fix checkpoint suppression for user messages - Propagate suppressMessage flag through event chain properly - Update ChatView to check checkpoint metadata for suppressMessage flag - Ensure checkpoint messages are created but not rendered when suppressed - Fix bug where checkpointSave(false) should have been checkpointSave(true) * fix: only create checkpoint on user message when files have changed - Changed allowEmpty from true to false in checkpointSave call - Checkpoints will now only be created when there are actual file changes - This avoids creating empty commits in the shadow git repository * test: update checkpoint test to include suppressMessage parameter - Fixed test expectation to match the new function signature - saveCheckpoint now expects both allowEmpty and suppressMessage parameters --------- Co-authored-by: Roo Code <[email protected]> Co-authored-by: Hannes Rudolph <[email protected]> Co-authored-by: Daniel Riccio <[email protected]> * Bump to 3.27.0 (RooCodeInc#7719) * Changeset version bump (RooCodeInc#7716) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Rubens <[email protected]> * fix: update DeepSeek pricing to new unified rates effective Sept 5, 2025 (RooCodeInc#7687) - Updated deepseek-chat pricing: $0.56 input (cache miss), $0.07 (cache hit), $1.68 output - Updated deepseek-reasoner pricing: same unified rates as deepseek-chat - Both models now have identical pricing as per DeepSeek announcement - Pricing takes effect at 16:00 UTC, Sept 5th, 2025 Fixes RooCodeInc#7685 Co-authored-by: Roo Code <[email protected]> * feat: replace cloud waitlist ad with direct Cloud link in navigation (RooCodeInc#7742) Co-authored-by: Roo Code <[email protected]> * feat: show dash instead of zero for missing data on evals page (RooCodeInc#7748) Co-authored-by: Roo Code <[email protected]> * Feature/update vertex ai models and regions (
Summary
This PR adds support for Claude 4.5 Sonnet model across all providers that support Claude models.
Changes
Anthropic Provider
claude-4.5-sonnetmodel configurationClaude Code Provider
claude-4.5-sonnet(imports from anthropic)AWS Bedrock Provider
anthropic.claude-4.5-sonnet-v1:0Google Vertex AI Provider
claude-4.5-sonnetTesting
Notes
This is a clean PR with only the Claude 4.5 Sonnet model additions, without any unrelated changes.
Important
Add Claude 4.5 Sonnet model support across providers with testing and 1M context beta flag.
claude-4.5-sonnetmodel toanthropic.ts,bedrock.ts,claude-code.ts,openrouter.ts, andvertex.ts.anthropic.tsandAnthropic.tsx.claude-4.5-sonnetinanthropic.spec.ts.openrouter.spec.tsto excludeclaude-4.5-sonnetfrom unsupported models.AnthropicHandlerinanthropic.tsto handle new model and beta flag.This description was created by
for ca968a1. You can customize this summary. It will automatically update as commits are pushed.