-
Notifications
You must be signed in to change notification settings - Fork 845
Add Claude Haiku 4.5 API model #896
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 Haiku 4.5 API model #896
Conversation
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 expands the system's AI model capabilities by introducing the Claude Haiku 4.5 model. It ensures that this new model is available through both the direct Claude API integration and the OpenRouter platform, providing users with an additional, up-to-date conversational AI option. 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 Anthropic's newly released Claude Haiku 4.5 model to the application's model configuration, enabling users to access this model through both the direct Claude API and OpenRouter integration.
- Registered
claudeHaiku45Apimodel key with identifierclaude-haiku-4-5-20251001for Claude API - Registered
openRouter_anthropic_claude_haiku_4_5model key with identifieranthropic/claude-haiku-4.5for OpenRouter - Added descriptive labels for both model entries to display in the UI
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
PR Compliance Guide 🔍(Compliance updated until commit 9b41c2b)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 32b8892
|
||||||||||||||||||||||||||||||||||||
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdded Claude Haiku 4.5 model registrations: new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{js,jsx,mjs}📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/config/index.mjs📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-09-29T18:11:06.577ZApplied to files:
🪛 Gitleaks (8.28.0)src/config/index.mjs[high] 85-86: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) 🔇 Additional comments (4)
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. Comment |
PR Code Suggestions ✨No code suggestions found for the PR. |
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 correctly adds support for the new Claude Haiku 4.5 model to both the Claude API and OpenRouter integrations. The changes are consistent with the existing code structure by adding the new model keys and their configurations. I have one suggestion regarding the ordering of models in the configuration for future maintainability, but the current changes are good to merge.
src/config/index.mjs
Outdated
| export const openRouterApiModelKeys = [ | ||
| 'openRouter_anthropic_claude_sonnet4', | ||
| 'openRouter_anthropic_claude_sonnet4_5', | ||
| 'openRouter_anthropic_claude_haiku_4_5', |
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.
While adding the new model here is logical, the overall ordering of Anthropic models in openRouterApiModelKeys is inconsistent (e.g., 3_7_sonnet appears after version 4 models). This inconsistency is also reflected in the Models object. For better maintainability, consider creating a follow-up PR to reorder all Anthropic models by version (e.g., sonnet4_5, haiku_4_5, sonnet4, 3_7_sonnet) in both openRouterApiModelKeys and the Models object.
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 believe that there is an inconsistency name issue here started from 626b3c6 😅
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting |
32b8892 to
9b41c2b
Compare
|
@codex review |
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
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
/gemini review |
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 introduces the Claude Haiku 4.5 model to both the Claude API and OpenRouter integrations by updating the configuration file src/config/index.mjs. The changes involve adding new model keys and their corresponding configurations to the Models object. I have identified a potential issue with the naming consistency of the new keys and suggest a minor adjustment for better readability and maintainability.
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
User description
Summary from GitHub Copilot:
Reference:
PR Type
Enhancement
Description
Add Claude Haiku 4.5 model to Claude API integration
Add Claude Haiku 4.5 model to OpenRouter integration
Register model keys and configurations for both providers
Diagram Walkthrough
File Walkthrough
index.mjs
Register Claude Haiku 4.5 modelssrc/config/index.mjs
claudeHaiku45ApitoclaudeApiModelKeysarrayopenRouter_anthropic_claude_haiku_4_5toopenRouterApiModelKeysarray
Modelsobject forClaude API with value
claude-haiku-4-5-20251001Modelsobject forOpenRouter with value
anthropic/claude-haiku-4.5Summary by CodeRabbit