Skip to content

Commit d789a77

Browse files
authored
opus4.5 対応 (#1362)
1 parent 8298e9f commit d789a77

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

docs/en/DEPLOY_OPTION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ As of 2025/03, the multimodal models are:
788788
"anthropic.claude-3-opus-20240229-v1:0",
789789
"anthropic.claude-3-sonnet-20240229-v1:0",
790790
"anthropic.claude-3-haiku-20240307-v1:0",
791+
"global.anthropic.claude-opus-4-5-20251101-v1:0",
791792
"global.anthropic.claude-sonnet-4-5-20250929-v1:0",
792793
"global.anthropic.claude-haiku-4-5-20251001-v1:0"
793794
"global.anthropic.claude-sonnet-4-20250514-v1:0",
@@ -962,6 +963,7 @@ This solution supports the following text generation models:
962963
"anthropic.claude-3-opus-20240229-v1:0",
963964
"anthropic.claude-3-sonnet-20240229-v1:0",
964965
"anthropic.claude-3-haiku-20240307-v1:0",
966+
"global.anthropic.claude-opus-4-5-20251101-v1:0",
965967
"global.anthropic.claude-sonnet-4-5-20250929-v1:0",
966968
"global.anthropic.claude-sonnet-4-20250514-v1:0",
967969
"us.anthropic.claude-opus-4-1-20250805-v1:0",

docs/ja/DEPLOY_OPTION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ const envs: Record<string, Partial<StackInput>> = {
803803
"anthropic.claude-3-opus-20240229-v1:0",
804804
"anthropic.claude-3-sonnet-20240229-v1:0",
805805
"anthropic.claude-3-haiku-20240307-v1:0",
806+
"global.anthropic.claude-opus-4-5-20251101-v1:0",
806807
"global.anthropic.claude-sonnet-4-5-20250929-v1:0",
807808
"global.anthropic.claude-haiku-4-5-20251001-v1:0"
808809
"global.anthropic.claude-sonnet-4-20250514-v1:0",
@@ -977,6 +978,7 @@ const envs: Record<string, Partial<StackInput>> = {
977978
"anthropic.claude-3-opus-20240229-v1:0",
978979
"anthropic.claude-3-sonnet-20240229-v1:0",
979980
"anthropic.claude-3-haiku-20240307-v1:0",
981+
"global.anthropic.claude-opus-4-5-20251101-v1:0",
980982
"global.anthropic.claude-sonnet-4-5-20250929-v1:0",
981983
"global.anthropic.claude-sonnet-4-20250514-v1:0",
982984
"us.anthropic.claude-opus-4-1-20250805-v1:0",

packages/cdk/lambda/utils/models.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ const CLAUDE_OPUS_4_DEFAULT_PARAMS: ConverseInferenceParams = {
124124
},
125125
};
126126

127+
const CLAUDE_OPUS_4_5_DEFAULT_PARAMS: ConverseInferenceParams = {
128+
inferenceConfig: {
129+
maxTokens: 64000,
130+
temperature: 1,
131+
},
132+
};
133+
127134
const CLAUDE_3_5_DEFAULT_PARAMS: ConverseInferenceParams = {
128135
inferenceConfig: {
129136
maxTokens: 8192,
@@ -974,6 +981,14 @@ export const BEDROCK_TEXT_GEN_MODELS: {
974981
extractConverseOutput: extractConverseOutput,
975982
extractConverseStreamOutput: extractConverseStreamOutput,
976983
},
984+
'global.anthropic.claude-opus-4-5-20251101-v1:0': {
985+
defaultParams: CLAUDE_OPUS_4_5_DEFAULT_PARAMS,
986+
usecaseParams: USECASE_DEFAULT_PARAMS,
987+
createConverseCommandInput: createConverseCommandInput,
988+
createConverseStreamCommandInput: createConverseStreamCommandInput,
989+
extractConverseOutput: extractConverseOutput,
990+
extractConverseStreamOutput: extractConverseStreamOutput,
991+
},
977992
'global.anthropic.claude-sonnet-4-5-20250929-v1:0': {
978993
defaultParams: CLAUDE_SONNET_4_DEFAULT_PARAMS,
979994
usecaseParams: USECASE_DEFAULT_PARAMS,

packages/cdk/test/__snapshots__/generative-ai-use-cases.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4536,7 +4536,7 @@ exports[`GenerativeAiUseCases matches the snapshot (closed network mode) 4`] = `
45364536
"Ref": "GenericAgentCoreAgentCoreFileBucket0430DA42",
45374537
},
45384538
"MCP_SERVERS": "{"time":{"command":"uvx","args":["mcp-server-time"],"metadata":{"category":"Utility","description":"Provides current time and date functionality"}},"aws-knowledge-mcp-server":{"command":"npx","args":["mcp-remote","https://knowledge-mcp.global.api.aws"],"metadata":{"category":"AWS","description":"AWS Knowledge Base MCP server for enterprise knowledge access"}},"awslabs.aws-documentation-mcp-server":{"command":"uvx","args":["awslabs.aws-documentation-mcp-server@latest"],"metadata":{"category":"AWS","description":"Access AWS documentation and guides"}},"awslabs.cdk-mcp-server":{"command":"uvx","args":["awslabs.cdk-mcp-server@latest"],"metadata":{"category":"AWS","description":"AWS CDK code generation and assistance"}},"awslabs.aws-diagram-mcp-server":{"command":"uvx","args":["awslabs.aws-diagram-mcp-server@latest"],"metadata":{"category":"AWS","description":"Generate AWS architecture diagrams"}},"awslabs.nova-canvas-mcp-server":{"command":"uvx","args":["awslabs.nova-canvas-mcp-server@latest"],"env":{"AWS_REGION":"us-east-1"},"metadata":{"category":"AI/ML","description":"Amazon Nova Canvas image generation"}},"tavily-search":{"command":"npx","args":["-y","mcp-remote","https://mcp.tavily.com/mcp/?tavilyApiKey=<key>"],"metadata":{"category":"Search","description":"Web search and research capabilities powered by Tavily"}}}",
4539-
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
4539+
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-opus-4-5-20251101-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
45404540
},
45414541
"NetworkConfiguration": {
45424542
"NetworkMode": "PUBLIC",
@@ -4805,7 +4805,7 @@ exports[`GenerativeAiUseCases matches the snapshot (closed network mode) 4`] = `
48054805
"Ref": "GenericAgentCoreAgentCoreFileBucket0430DA42",
48064806
},
48074807
"MCP_SERVERS": "{"time":{"command":"uvx","args":["mcp-server-time"],"metadata":{"category":"Utility","description":"Provides current time and date functionality"}},"aws-knowledge-mcp-server":{"command":"npx","args":["mcp-remote","https://knowledge-mcp.global.api.aws"],"metadata":{"category":"AWS","description":"AWS Knowledge Base MCP server for enterprise knowledge access"}},"awslabs.aws-documentation-mcp-server":{"command":"uvx","args":["awslabs.aws-documentation-mcp-server@latest"],"metadata":{"category":"AWS","description":"Access AWS documentation and guides"}},"awslabs.cdk-mcp-server":{"command":"uvx","args":["awslabs.cdk-mcp-server@latest"],"metadata":{"category":"AWS","description":"AWS CDK code generation and assistance"}},"awslabs.aws-diagram-mcp-server":{"command":"uvx","args":["awslabs.aws-diagram-mcp-server@latest"],"metadata":{"category":"AWS","description":"Generate AWS architecture diagrams"}},"awslabs.nova-canvas-mcp-server":{"command":"uvx","args":["awslabs.nova-canvas-mcp-server@latest"],"env":{"AWS_REGION":"us-east-1"},"metadata":{"category":"AI/ML","description":"Amazon Nova Canvas image generation"}},"tavily-search":{"command":"npx","args":["-y","mcp-remote","https://mcp.tavily.com/mcp/?tavilyApiKey=<key>"],"metadata":{"category":"Search","description":"Web search and research capabilities powered by Tavily"}}}",
4808-
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
4808+
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-opus-4-5-20251101-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
48094809
},
48104810
"NetworkConfiguration": {
48114811
"NetworkMode": "PUBLIC",
@@ -26496,7 +26496,7 @@ exports[`GenerativeAiUseCases matches the snapshot 4`] = `
2649626496
"Ref": "GenericAgentCoreAgentCoreFileBucket0430DA42",
2649726497
},
2649826498
"MCP_SERVERS": "{"time":{"command":"uvx","args":["mcp-server-time"],"metadata":{"category":"Utility","description":"Provides current time and date functionality"}},"aws-knowledge-mcp-server":{"command":"npx","args":["mcp-remote","https://knowledge-mcp.global.api.aws"],"metadata":{"category":"AWS","description":"AWS Knowledge Base MCP server for enterprise knowledge access"}},"awslabs.aws-documentation-mcp-server":{"command":"uvx","args":["awslabs.aws-documentation-mcp-server@latest"],"metadata":{"category":"AWS","description":"Access AWS documentation and guides"}},"awslabs.cdk-mcp-server":{"command":"uvx","args":["awslabs.cdk-mcp-server@latest"],"metadata":{"category":"AWS","description":"AWS CDK code generation and assistance"}},"awslabs.aws-diagram-mcp-server":{"command":"uvx","args":["awslabs.aws-diagram-mcp-server@latest"],"metadata":{"category":"AWS","description":"Generate AWS architecture diagrams"}},"awslabs.nova-canvas-mcp-server":{"command":"uvx","args":["awslabs.nova-canvas-mcp-server@latest"],"env":{"AWS_REGION":"us-east-1"},"metadata":{"category":"AI/ML","description":"Amazon Nova Canvas image generation"}},"tavily-search":{"command":"npx","args":["-y","mcp-remote","https://mcp.tavily.com/mcp/?tavilyApiKey=<key>"],"metadata":{"category":"Search","description":"Web search and research capabilities powered by Tavily"}}}",
26499-
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
26499+
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-opus-4-5-20251101-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
2650026500
},
2650126501
"NetworkConfiguration": {
2650226502
"NetworkMode": "PUBLIC",
@@ -26765,7 +26765,7 @@ exports[`GenerativeAiUseCases matches the snapshot 4`] = `
2676526765
"Ref": "GenericAgentCoreAgentCoreFileBucket0430DA42",
2676626766
},
2676726767
"MCP_SERVERS": "{"time":{"command":"uvx","args":["mcp-server-time"],"metadata":{"category":"Utility","description":"Provides current time and date functionality"}},"aws-knowledge-mcp-server":{"command":"npx","args":["mcp-remote","https://knowledge-mcp.global.api.aws"],"metadata":{"category":"AWS","description":"AWS Knowledge Base MCP server for enterprise knowledge access"}},"awslabs.aws-documentation-mcp-server":{"command":"uvx","args":["awslabs.aws-documentation-mcp-server@latest"],"metadata":{"category":"AWS","description":"Access AWS documentation and guides"}},"awslabs.cdk-mcp-server":{"command":"uvx","args":["awslabs.cdk-mcp-server@latest"],"metadata":{"category":"AWS","description":"AWS CDK code generation and assistance"}},"awslabs.aws-diagram-mcp-server":{"command":"uvx","args":["awslabs.aws-diagram-mcp-server@latest"],"metadata":{"category":"AWS","description":"Generate AWS architecture diagrams"}},"awslabs.nova-canvas-mcp-server":{"command":"uvx","args":["awslabs.nova-canvas-mcp-server@latest"],"env":{"AWS_REGION":"us-east-1"},"metadata":{"category":"AI/ML","description":"Amazon Nova Canvas image generation"}},"tavily-search":{"command":"npx","args":["-y","mcp-remote","https://mcp.tavily.com/mcp/?tavilyApiKey=<key>"],"metadata":{"category":"Search","description":"Web search and research capabilities powered by Tavily"}}}",
26768-
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
26768+
"SUPPORTED_CACHE_FIELDS": "{"anthropic.claude-opus-4-5-20251101-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-5-20250929-v1:0":["messages","system","tools"],"anthropic.claude-haiku-4-5-20251001-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-1-20250805-v1:0":["messages","system","tools"],"anthropic.claude-opus-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-sonnet-4-20250514-v1:0":["messages","system","tools"],"anthropic.claude-3-7-sonnet-20250219-v1:0":["messages","system","tools"],"anthropic.claude-3-5-haiku-20241022-v1:0":["messages","system","tools"],"amazon.nova-premier-v1:0":["messages","system"],"amazon.nova-pro-v1:0":["messages","system"],"amazon.nova-lite-v1:0":["messages","system"],"amazon.nova-micro-v1:0":["messages","system"]}",
2676926769
},
2677026770
"NetworkConfiguration": {
2677126771
"NetworkMode": "PUBLIC",

packages/common/src/application/model.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ export const modelMetadata: Record<string, ModelMetadata> = {
8282
flags: MODEL_FEATURE.TEXT_DOC_IMAGE_REASONING,
8383
displayName: 'Claude Opus 4',
8484
},
85+
'global.anthropic.claude-opus-4-5-20251101-v1:0': {
86+
flags: MODEL_FEATURE.TEXT_DOC_IMAGE_REASONING,
87+
displayName: 'Claude Opus 4.5',
88+
},
8589
'global.anthropic.claude-sonnet-4-5-20250929-v1:0': {
8690
flags: MODEL_FEATURE.TEXT_DOC_IMAGE_REASONING,
8791
displayName: 'Claude Sonnet 4.5',
@@ -563,6 +567,7 @@ export const BEDROCK_SPEECH_TO_SPEECH_MODELS = Object.keys(
563567
// Prompt caching
564568
// https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html
565569
export const SUPPORTED_CACHE_FIELDS: Record<string, PromptCacheField[]> = {
570+
'anthropic.claude-opus-4-5-20251101-v1:0': ['messages', 'system', 'tools'],
566571
'anthropic.claude-sonnet-4-5-20250929-v1:0': ['messages', 'system', 'tools'],
567572
'anthropic.claude-haiku-4-5-20251001-v1:0': ['messages', 'system', 'tools'],
568573
'anthropic.claude-opus-4-1-20250805-v1:0': ['messages', 'system', 'tools'],

0 commit comments

Comments
 (0)