-
Notifications
You must be signed in to change notification settings - Fork 839
Add Claude Sonnet 4.5 model support #895
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
Add Claude Sonnet 4.5 model support #895
Conversation
- Register `claudeSonnet45Api` with the Anthropic API list using the `claude-sonnet-4-5-20250929` identifier. - Add OpenRouter (`anthropic/claude-sonnet-4.5`) and AIML (`anthropic/claude-sonnet-4-5`) options to keep providers in sync. - Update the default OpenRouter model to Sonnet 4.5 so new installs use the latest Claude Sonnet model. Reference: - https://www.anthropic.com/news/claude-sonnet-4-5
WalkthroughAdds Claude Sonnet 4.5 across configuration: new model keys for Claude API, OpenRouter, and AIML; registers three corresponding Models entries; updates defaultConfig activeApiModes to use the OpenRouter Claude Sonnet 4.5 model. Changes
Sequence Diagram(s)Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Tip 🧪 Early access (models): enabledWe are currently testing Sonnet 4.5 code review models, which should lead to better review quality. However, this model may result in higher noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
Summary of ChangesHello @PeterDaveHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces comprehensive support for the newly released Claude Sonnet 4.5 model. It involves registering the model within the application's configuration, extending its availability to third-party API providers like OpenRouter and AIML, and setting it as the default OpenRouter model for new users to ensure they benefit from the latest advancements. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Pull Request Overview
This PR adds support for the newly released Claude Sonnet 4.5 model across multiple AI providers. The change ensures users can access the latest Claude model through direct Anthropic API, OpenRouter, and AIML providers.
- Registers the new
claudeSonnet45Api
model with identifierclaude-sonnet-4-5-20250929
- Adds Claude Sonnet 4.5 support for OpenRouter and AIML providers
- Updates the default OpenRouter model from Sonnet 4 to Sonnet 4.5
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Code Review
This pull request adds support for the Claude Sonnet 4.5 model by registering it with the Anthropic API list and updating the OpenRouter and AIML options. The default OpenRouter model is also updated to Sonnet 4.5. The changes involve modifying the src/config/index.mjs
file to include the new model in various lists and configurations.
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/config/index.mjs
(7 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{js,jsx,mjs}
📄 CodeRabbit inference engine (AGENTS.md)
Follow ESLint React/JSX standards defined in
.eslintrc.json
(runnpm run lint
)
Files:
src/config/index.mjs
src/config/index.mjs
📄 CodeRabbit inference engine (AGENTS.md)
Configuration management entry should be maintained in
src/config/index.mjs
Files:
src/config/index.mjs
🔇 Additional comments (5)
src/config/index.mjs (5)
85-85
: LGTM!The addition of
claudeSonnet45Api
to theclaudeApiModelKeys
array follows the existing naming convention and is properly placed.
114-114
: LGTM!The addition follows the established naming convention for OpenRouter models.
125-125
: LGTM!The addition to
aimlApiModelKeys
is properly positioned and follows the naming convention.
556-556
: LGTM!Updating the default OpenRouter model to Claude Sonnet 4.5 is appropriate, ensuring new installations use the latest model. This change only affects new users, as existing configurations are preserved.
423-426
: Verify the model identifier with AIML's API.The identifier
anthropic/claude-sonnet-4-5
follows the established naming pattern for AIML models in this codebase (e.g.,anthropic/claude-sonnet-4
,anthropic/claude-opus-4-1
). However, web searches only confirm AIML supports "Claude Sonnet 4"—no explicit documentation for a "4.5" variant was found. Please confirm thatanthropic/claude-sonnet-4-5
is available in AIML's model database before merging.
User description
claudeSonnet45Api
with the Anthropic API list using theclaude-sonnet-4-5-20250929
identifier.anthropic/claude-sonnet-4.5
) and AIML (anthropic/claude-sonnet-4-5
) options to keep providers in sync.Reference:
PR Type
Enhancement
Description
Add Claude Sonnet 4.5 model support across providers
Register new model with Anthropic API configuration
Update default OpenRouter model to latest version
Maintain provider synchronization for new model
Diagram Walkthrough
File Walkthrough
index.mjs
Add Claude Sonnet 4.5 model configurations
src/config/index.mjs
claudeSonnet45Api
to Anthropic API model keysSummary by CodeRabbit