Skip to content
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

Merged
merged 4 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/aws_bedrock_llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,28 @@ export const anthropicClaude3OpusV1 = (
});
};

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,
});
};
Comment on lines +275 to +295
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

⚠️ Potential issue

🧩 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:


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 the name and within the versions array).


export const anthropicClaude35SonnetV2 = (
inferenceRegion: string = "us",
): ModelReference<typeof GenerationCommonConfigSchema> => {
Expand Down Expand Up @@ -744,6 +766,8 @@ export const SUPPORTED_AWS_BEDROCK_MODELS = (
"anthropic.claude-instant-v1": anthropicClaudeInstantV1,
[`${inferenceRegion}.anthropic.claude-3-5-haiku-20241022-v1:0`]:
anthropicClaude35HaikuV1(inferenceRegion),
[`${inferenceRegion}.anthropic.claude-3-7-sonnet-20250219-v1:0`]:
anthropicClaude37SonnetV1(inferenceRegion),
[`${inferenceRegion}.anthropic.claude-3-5-sonnet-20241022-v2:0`]:
anthropicClaude35SonnetV2(inferenceRegion),
[`${inferenceRegion}.anthropic.claude-3-5-sonnet-20240620-v1:0`]:
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
mistral7BInstructV02,
mistral8x7BInstructV01,
anthropicClaude35HaikuV1,
anthropicClaude37SonnetV1,
anthropicClaude35SonnetV2,
anthropicClaude3OpusV1,
anthropicClaude3HaikuV1,
Expand Down Expand Up @@ -85,6 +86,7 @@ export {
metaLlama370BInstruct,
metaLlama38BInstruct,
anthropicClaude35HaikuV1,
anthropicClaude37SonnetV1,
anthropicClaude35SonnetV2,
anthropicClaude3OpusV1,
anthropicClaude3HaikuV1,
Expand Down
Loading