Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 7bc966e

Browse files
Fix Bedrock Claude Sonnet 4.6 model ID, cc #11509 (#11569)
Replace the incorrect Sonnet 4.6 Bedrock ID with the AWS-supported model ID in the model registry and Bedrock capability lists. Remove references to the deprecated dated ID and update Bedrock tests to validate the corrected Sonnet 4.6 identifier.
1 parent d575295 commit 7bc966e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/types/src/providers/bedrock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const bedrockModels = {
2727
maxCachePoints: 4,
2828
cachableFields: ["system", "messages", "tools"],
2929
},
30-
"anthropic.claude-sonnet-4-6-20260114-v1:0": {
30+
"anthropic.claude-sonnet-4-6": {
3131
maxTokens: 8192,
3232
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
3333
supportsImages: true,
@@ -523,7 +523,7 @@ export const BEDROCK_REGIONS = [
523523
export const BEDROCK_1M_CONTEXT_MODEL_IDS = [
524524
"anthropic.claude-sonnet-4-20250514-v1:0",
525525
"anthropic.claude-sonnet-4-5-20250929-v1:0",
526-
"anthropic.claude-sonnet-4-6-20260114-v1:0",
526+
"anthropic.claude-sonnet-4-6",
527527
"anthropic.claude-opus-4-6-v1",
528528
] as const
529529

@@ -538,7 +538,7 @@ export const BEDROCK_1M_CONTEXT_MODEL_IDS = [
538538
export const BEDROCK_GLOBAL_INFERENCE_MODEL_IDS = [
539539
"anthropic.claude-sonnet-4-20250514-v1:0",
540540
"anthropic.claude-sonnet-4-5-20250929-v1:0",
541-
"anthropic.claude-sonnet-4-6-20260114-v1:0",
541+
"anthropic.claude-sonnet-4-6",
542542
"anthropic.claude-haiku-4-5-20251001-v1:0",
543543
"anthropic.claude-opus-4-5-20251101-v1:0",
544544
"anthropic.claude-opus-4-6-v1",

src/api/providers/__tests__/bedrock.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ describe("AwsBedrockHandler", () => {
703703

704704
it("should apply 1M tier pricing when awsBedrock1MContext is true for Claude Sonnet 4.6", () => {
705705
const handler = new AwsBedrockHandler({
706-
apiModelId: "anthropic.claude-sonnet-4-6-20260114-v1:0",
706+
apiModelId: "anthropic.claude-sonnet-4-6",
707707
awsAccessKey: "test",
708708
awsSecretKey: "test",
709709
awsRegion: "us-east-1",

0 commit comments

Comments
 (0)