Skip to content

Bugfix/Update anthropic package#5408

Merged
HenryHengZJ merged 1 commit intomainfrom
bugfix/Claude-Extended-Thinking
Nov 4, 2025
Merged

Bugfix/Update anthropic package#5408
HenryHengZJ merged 1 commit intomainfrom
bugfix/Claude-Extended-Thinking

Conversation

@HenryHengZJ
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @HenryHengZJ, 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 the new Claude 4.5 Haiku model, making it available for use within the system. It also includes an update to the Anthropic Langchain dependency to a newer version, ensuring compatibility and access to the latest features. Additionally, a minor refinement has been made to the UI description for the 'Extended Thinking' feature to better reflect its supported models.

Highlights

  • New Model Integration: The Claude 4.5 Haiku model has been added to the list of available models, including its various naming conventions and associated input/output costs.
  • Dependency Update: The @langchain/anthropic package has been updated from version 0.3.29 to 0.3.33.
  • UI Description Enhancement: The description for the 'Extended Thinking' feature in the ChatAnthropic node has been updated to explicitly mention compatibility with 'Claude 4' models, alongside 'Claude Sonnet 3.7'.
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
Contributor

@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 updates the @langchain/anthropic package and adds support for the new Claude 4.5 Haiku models. The changes are a good step, but I've identified a critical issue with the pricing for the new models in models.json. The specified costs are higher than the official Anthropic pricing, which could lead to incorrect cost calculations for users. I've left suggestions to correct these values. Additionally, I found a related bug in packages/components/nodes/chatmodels/ChatAnthropic/FlowiseChatAnthropic.ts that was not part of this PR's changes. The logic for handling vision-capable models does not account for the new claude-4.5 models, which will cause issues with image uploads. I highly recommend addressing this oversight to ensure full and correct functionality for the new models.

Comment on lines +17 to +18
"input_cost": 0.000001,
"output_cost": 0.000005
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The pricing for anthropic.claude-haiku-4-5-20251001-v1:0 appears to be incorrect. According to Anthropic's official pricing, Claude 4.5 Haiku costs $0.80 per million input tokens and $4.00 per million output tokens. Please update the costs to reflect the correct pricing.

Suggested change
"input_cost": 0.000001,
"output_cost": 0.000005
"input_cost": 8e-7,
"output_cost": 4e-6

Comment on lines +513 to +514
"input_cost": 0.000001,
"output_cost": 0.000005
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The pricing for claude-haiku-4-5 appears to be incorrect. According to Anthropic's official pricing, Claude 4.5 Haiku costs $0.80 per million input tokens and $4.00 per million output tokens. Please update the costs to reflect the correct pricing.

Suggested change
"input_cost": 0.000001,
"output_cost": 0.000005
"input_cost": 8e-7,
"output_cost": 4e-6

@HenryHengZJ HenryHengZJ merged commit a92f7df into main Nov 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Haiku 4.5 support Claude sonnet 4.5 with Extended thinking

1 participant