Skip to content

Conversation

@PeterDaveHello
Copy link
Member

@PeterDaveHello PeterDaveHello commented Oct 16, 2025

User description

Summary from GitHub Copilot:

This pull request adds support for the new Claude Haiku 4.5 model to both the Claude API and OpenRouter integrations. The main changes involve updating configuration files to register the new model keys and their descriptions.

Claude API model additions:

  • Added claudeHaiku45Api to claudeApiModelKeys and defined its configuration in the Models object, including its value and description. [1] [2]

OpenRouter model additions:

  • Added openRouter_anthropic_claude_haiku_4_5 to openRouterApiModelKeys and defined its configuration in the Models object, including its value and description. [1] [2]

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

flowchart LR
  A["Claude Haiku 4.5<br/>Model Addition"] --> B["Claude API<br/>Integration"]
  A --> C["OpenRouter<br/>Integration"]
  B --> D["claudeHaiku45Api<br/>Key Registration"]
  C --> E["openRouter_anthropic_claude_haiku_4_5<br/>Key Registration"]
  D --> F["Model Configuration<br/>claude-haiku-4-5-20251001"]
  E --> G["Model Configuration<br/>anthropic/claude-haiku-4.5"]
Loading

File Walkthrough

Relevant files
Enhancement
index.mjs
Register Claude Haiku 4.5 models                                                 

src/config/index.mjs

  • Added claudeHaiku45Api to claudeApiModelKeys array
  • Added openRouter_anthropic_claude_haiku_4_5 to openRouterApiModelKeys
    array
  • Registered Claude Haiku 4.5 model configuration in Models object for
    Claude API with value claude-haiku-4-5-20251001
  • Registered Claude Haiku 4.5 model configuration in Models object for
    OpenRouter with value anthropic/claude-haiku-4.5
+10/-0   

Summary by CodeRabbit

  • New Features
    • Added Claude Haiku 4.5 as an available AI model option.
    • Claude Haiku 4.5 is now accessible via both the Claude API integration and the OpenRouter integration.

@gemini-code-assist
Copy link

Summary of Changes

Hello @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

  • Claude API Integration: Added support for the new claudeHaiku45Api model, including its key to the claudeApiModelKeys array and its full configuration (value and description) within the Models object.
  • OpenRouter Integration: Integrated the openRouter_anthropic_claude_haiku_4_5 model, adding its key to the openRouterApiModelKeys array and defining its configuration (value and description) in the Models object.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

Copilot AI left a 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 claudeHaiku45Api model key with identifier claude-haiku-4-5-20251001 for Claude API
  • Registered openRouter_anthropic_claude_haiku_4_5 model key with identifier anthropic/claude-haiku-4.5 for 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.

@qodo-merge-pro
Copy link
Contributor

qodo-merge-pro bot commented Oct 16, 2025

PR Compliance Guide 🔍

(Compliance updated until commit 9b41c2b)

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->

</details></td></tr>
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
No custom compliance provided

Follow the guide to enable custom compliance check.

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

Previous compliance checks

Compliance check up to commit 32b8892
Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->

</details></td></tr>
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
No custom compliance provided

Follow the guide to enable custom compliance check.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 16, 2025

Note

Other AI code review bot(s) detected

CodeRabbit 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.

Walkthrough

Added Claude Haiku 4.5 model registrations: new claudeHaiku45Api and openRouter_anthropic_claude_haiku4_5 keys were appended to API model key lists and corresponding entries were added to the central Models mapping in src/config/index.mjs.

Changes

Cohort / File(s) Summary
Config: Claude Haiku 4.5 registration
src/config/index.mjs
Added claudeHaiku45Api to claudeApiModelKeys and a Models entry (value + description). Added openRouter_anthropic_claude_haiku4_5 to openRouterApiModelKeys and corresponding Models entry with OpenRouter API mapping.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Poem

🐰 A small haiku hops on the scene,
New model keys, tidy and keen.
Configs updated, mappings set,
Claude 4.5—ready, don't fret! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Add Claude Haiku 4.5 API model" is fully related to the main changes in the changeset. The PR adds support for the Claude Haiku 4.5 model across both Claude API and OpenRouter integrations by registering new model keys and configurations in src/config/index.mjs. The title accurately summarizes this primary objective in a concise, specific, and clear manner without being vague or misleading. While it doesn't enumerate every implementation detail, it captures the essential change that a reviewer would understand from scanning the PR history.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 32b8892 and 9b41c2b.

📒 Files selected for processing (1)
  • src/config/index.mjs (4 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 (run npm 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
🧠 Learnings (1)
📚 Learning: 2025-09-29T18:11:06.577Z
Learnt from: PeterDaveHello
PR: ChatGPTBox-dev/chatGPTBox#895
File: src/config/index.mjs:382-385
Timestamp: 2025-09-29T18:11:06.577Z
Learning: OpenRouter uses periods in model identifiers for Claude Sonnet 4.5: `anthropic/claude-sonnet-4.5` (not hyphens like `anthropic/claude-sonnet-4-5`).

Applied to files:

  • src/config/index.mjs
🪛 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)
src/config/index.mjs (4)

86-86: LGTM!

The key name follows the established naming convention for Claude API models.

Note: The static analysis warning about a "Generic API Key" is a false positive—this is a configuration key literal, not an actual API credential.


116-116: LGTM!

The key name follows the established naming pattern for OpenRouter models. The placement maintains the current ordering convention (newer versions before older ones).


302-305: Model identifier verified as correct.

The Claude Haiku 4.5 model identifier claude-haiku-4-5-20251001 is confirmed by Anthropic's official documentation. The configuration is structurally sound and follows the established pattern in the codebase.


392-395: Fix model identifier: Use hyphens in version number, not periods.

The OpenRouter model identifier for Claude Haiku 4.5 must use hyphens in the version: anthropic/claude-haiku-4-5, not periods. Update line 393:

- openRouter_anthropic_claude_haiku4_5: {
-   value: 'anthropic/claude-haiku-4.5',
+ openRouter_anthropic_claude_haiku4_5: {
+   value: 'anthropic/claude-haiku-4-5',
⛔ Skipped due to learnings
Learnt from: PeterDaveHello
PR: ChatGPTBox-dev/chatGPTBox#895
File: src/config/index.mjs:382-385
Timestamp: 2025-09-29T18:11:06.577Z
Learning: OpenRouter uses periods in model identifiers for Claude Sonnet 4.5: `anthropic/claude-sonnet-4.5` (not hyphens like `anthropic/claude-sonnet-4-5`).

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@qodo-merge-pro
Copy link
Contributor

qodo-merge-pro bot commented Oct 16, 2025

PR Code Suggestions ✨

No code suggestions found for the PR.

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

export const openRouterApiModelKeys = [
'openRouter_anthropic_claude_sonnet4',
'openRouter_anthropic_claude_sonnet4_5',
'openRouter_anthropic_claude_haiku_4_5',

Choose a reason for hiding this comment

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

medium

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.

Copy link
Member Author

@PeterDaveHello PeterDaveHello Oct 24, 2025

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 😅

@PeterDaveHello
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@PeterDaveHello
Copy link
Member Author

@codex review

Copy link

Copilot AI left a 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.

@PeterDaveHello
Copy link
Member Author

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@PeterDaveHello PeterDaveHello merged commit 7b99ec5 into ChatGPTBox-dev:master Oct 24, 2025
2 checks passed
@PeterDaveHello PeterDaveHello deleted the add-claude-haiku-4-5 branch October 24, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant