-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: New model Sonnet 3.7 #54
Conversation
Sonnet 3.7 added
Sonnet 3.7 added
WalkthroughA new function Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as User/Caller
participant ACls as anthropicClaude37SonnetV1
participant ModelRef as modelRef Function
Caller->>ACls: Call anthropicClaude37SonnetV1(inferenceRegion)
ACls->>ModelRef: Generate model reference using inferenceRegion
ModelRef-->>ACls: Return ModelReference object
ACls-->>Caller: Return constructed ModelReference
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/aws_bedrock_llms.ts
(2 hunks)src/index.ts
(1 hunks)
🧰 Additional context used
🪛 GitHub Check: build-and-test (20.x)
src/index.ts
[failure] 88-88:
Cannot find name 'anthropicClaude37SonnetV1'. Did you mean 'anthropicClaude3SonnetV1'?
🪛 GitHub Actions: Build & Test
src/index.ts
[error] 88-88: error TS2552: Cannot find name 'anthropicClaude37SonnetV1'. Did you mean 'anthropicClaude3SonnetV1'?
🔇 Additional comments (2)
src/aws_bedrock_llms.ts (1)
769-770
: LGTM!The new model is correctly added to the supported models map, following the established pattern and maintaining alphabetical order.
src/index.ts (1)
88-88
:⚠️ Potential issueFix the missing import.
The export is added but the import is missing, causing build failures. Add the import to fix the error.
Apply this diff to fix the import:
import { awsBedrockModel, amazonNovaProV1, ... anthropicClaude35HaikuV1, + anthropicClaude37SonnetV1, anthropicClaude35SonnetV2, ... } from "./aws_bedrock_llms.js";
Likely an incorrect or invalid review comment.
🧰 Tools
🪛 GitHub Check: build-and-test (20.x)
[failure] 88-88:
Cannot find name 'anthropicClaude37SonnetV1'. Did you mean 'anthropicClaude3SonnetV1'?🪛 GitHub Actions: Build & Test
[error] 88-88: error TS2552: Cannot find name 'anthropicClaude37SonnetV1'. Did you mean 'anthropicClaude3SonnetV1'?
export const anthropicClaude37SonnetV1 = ( | ||
inferenceRegion: string = "us", | ||
): ModelReference<typeof GenerationCommonConfigSchema> => { | ||
return modelRef({ | ||
name: `aws-bedrock/${inferenceRegion}.anthropic.claude-3-7-sonnet-20250219-v1:0`, | ||
info: { | ||
versions: [ | ||
`${inferenceRegion}.anthropic.claude-3-7-sonnet-20250219-v1:0`, | ||
], | ||
label: "Anthropic - Claude 3.7 Sonnet V1", | ||
supports: { | ||
multiturn: true, | ||
tools: true, | ||
media: true, | ||
systemRole: true, | ||
output: ["text", "json"], | ||
}, | ||
}, | ||
configSchema: GenerationCommonConfigSchema, | ||
}); | ||
}; |
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.
💡 Verification agent
🧩 Analysis chain
Verify the model version date.
The model version includes a future date "20250219" which seems incorrect. Please verify if this is the correct version identifier for the Claude 3.7 Sonnet model.
🌐 Web query:
What is the latest version of Claude 3.7 Sonnet?
💡 Result:
Claude 3.7 Sonnet is Anthropic's latest AI model as of February 24, 2025[1][5][10]. This first-of-its-kind hybrid reasoning model combines rapid responses with extended analytical capabilities in a single system[1][6][7]. Key features include:
Two operational modes:
- Standard mode: Functions as an enhanced version of Claude 3.5 Sonnet for quick responses[1][5]
- Extended thinking mode: Enables detailed problem-solving through self-reflection and step-by-step reasoning[1][3][6]
Technical advancements:
- Supports outputs up to 128K tokens (beta) - a 15x increase from previous versions[1][10]
- Maintains pricing at $3/million input tokens and $15/million output tokens[4][6]
- Achieves 70.3% accuracy on SWE-bench Verified coding tasks in standard mode[1][6]
The model is currently available through:
- Amazon Bedrock in US regions[1][5]
- Google Cloud's Vertex AI (preview)[8]
- Anthropic API[9]
- Integrated into Amazon Q Developer for coding workflows[1]
No newer versions beyond Claude 3.7 Sonnet appear in any official announcements or technical documentation as of this date[1][4][10].
Citations:
- 1: https://aws.amazon.com/blogs/aws/anthropics-claude-3-7-sonnet-the-first-hybrid-reasoning-model-is-now-available-in-amazon-bedrock/
- 2: https://forum.cursor.com/t/claude-3-7-now-available/53910
- 3: https://www.lesswrong.com/posts/qkfRNcvWz3GqoPaJk/anthropic-releases-claude-3-7-sonnet-with-extended-thinking
- 4: https://topmostads.com/claude-sonnet-3-7-released/
- 5: https://aws.amazon.com/about-aws/whats-new/2025/02/anthropics-claude-3-7-sonnet-amazon-bedrock/
- 6: https://www.maginative.com/article/anthropic-unveils-claude-3-7-sonnet-and-claude-code-pushing-ai-boundaries/
- 7: https://bdtechtalks.com/2025/02/24/claude-3-7-sonnet/
- 8: https://cloud.google.com/blog/products/ai-machine-learning/anthropics-claude-3-7-sonnet-is-available-on-vertex-ai/
- 9: https://www.anthropic.com/claude/sonnet
- 10: https://www.aboutamazon.com/news/aws/claude-3-7-sonnet-anthropic-amazon-bedrock
Action Required: Update the Model Version Date Identifier
The current version identifier uses the date "20250219", but recent official sources confirm that Claude 3.7 Sonnet was released on February 24, 2025. Please update the version string in src/aws_bedrock_llms.ts
(lines 275–295) accordingly.
- File:
src/aws_bedrock_llms.ts
- Location: Lines 275–295
- Correction: Change
"20250219"
to"20250224"
in the model reference (both in thename
and within theversions
array).
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.
Build is failing, you need to import the model to export it in index.ts
🎉 This PR is included in version 1.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This pull request is related to:
I have checked the following:
Description:
New model: Anthropic Sonnet 3.7
Summary by CodeRabbit