Conversation
Summary of ChangesHello @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
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.
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.
| "input_cost": 0.000001, | ||
| "output_cost": 0.000005 |
There was a problem hiding this comment.
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.
| "input_cost": 0.000001, | |
| "output_cost": 0.000005 | |
| "input_cost": 8e-7, | |
| "output_cost": 4e-6 |
| "input_cost": 0.000001, | ||
| "output_cost": 0.000005 |
There was a problem hiding this comment.
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.
| "input_cost": 0.000001, | |
| "output_cost": 0.000005 | |
| "input_cost": 8e-7, | |
| "output_cost": 4e-6 |
No description provided.