chore: Update AWS claude 4.5 haiku model's information - #2098
Conversation
WalkthroughA new Claude Haiku model (claude-haiku-4-5-20251001) has been added to AWS constants with mappings to the Anthropic Claude Haiku v1 endpoint. Corresponding cross-region support entries for us, ap, and eu regions have been configured in both model ID and cross-region maps. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
relay/channel/aws/constants.go(2 hunks)
🔇 Additional comments (1)
relay/channel/aws/constants.go (1)
20-20: LGTM! Model ID is verified.The model ID "anthropic.claude-haiku-4-5-20251001-v1:0" is correct per AWS Bedrock documentation. The mapping is accurate and the change is ready to merge.
| "anthropic.claude-haiku-4-5-20251001-v1:0": { | ||
| "us": true, | ||
| "ap": true, | ||
| "eu": true, | ||
| }, |
There was a problem hiding this comment.
🧩 Analysis chain
LGTM! Verify regional availability with AWS Bedrock documentation.
The cross-region configuration is consistent with similar Claude 4.5 models and correctly uses the full model ID as the key.
Please verify that the regional availability (us, ap, eu) is accurate for this model:
🌐 Web query:
AWS Bedrock Claude Haiku 4.5 20251001 regional availability
💡 Result:
Short answer — As of the Claude Haiku 4.5 release (model id/date 2025-10-01), Amazon Bedrock exposes Haiku 4.5 via global cross-region inference and region-specific (US and EU) inference profiles. Key details:
-
Global inference profile id: global.anthropic.claude-haiku-4-5-20251001-v1:0; callable from us-west-2, us-east-2, and us-east-1 (routes to all commercial AWS Regions). [1][2]
-
US (regional) profile id: us.anthropic.claude-haiku-4-5-20251001-v1:0; source Regions that can call it: us-west-2, us-west-1, us-east-2, us-east-1 (destination routing includes us-east-1, us-east-2, us-west-1, us-west-2 as shown per source). [1]
-
EU (regional) profile id: eu.anthropic.claude-haiku-4-5-20251001-v1:0; source Regions listed include eu-west-3, eu-west-2, eu-west-1, eu-south-2, eu-south-1, eu-north-1, eu-central-2, eu-central-1 with destination routing across EU regions (eu-central-1, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-3). [1]
-
Anthropic docs confirm the Bedrock model name mapping for Haiku 4.5: anthropic.claude-haiku-4-5-20251001-v1:0 (Bedrock) / claude-haiku-4-5-20251001 (Claude API). [2]
Sources: AWS Bedrock documentation (inference profiles / region support) and Anthropic Claude 4.5 availability notes. [1][2]
References
[1] Amazon Bedrock — Supported inference profiles & region routing (model / inference-profile details).
[2] Anthropic — What's new / Claude 4.5 availability and Bedrock model names.
I found information about US and EU regional availability, but the search results don't explicitly confirm an AP (Asia Pacific) cross-region profile. Let me search more specifically for APAC region support:
Remove or correct the "ap" region entry—AWS Bedrock doesn't provide an APAC cross-region inference profile for Claude Haiku 4.5.
AWS Bedrock only documents an AU (Australia) inference profile for Claude Haiku 4.5, not an APAC or "ap" profile. A Global profile exists for this model, and a Japan-specific profile (jp.anthropic.claude-haiku-4-5-20251001-v1:0) is available, but there is no generic APAC cross-region profile documented.
Additionally, if an APAC profile did exist, the code should use the "apac" prefix (not "ap"), as AWS uses "us.", "eu.", or "apac." prefixes for inference profile IDs.
Either remove the "ap" entry or verify the intended region and use the correct prefix.
🤖 Prompt for AI Agents
In relay/channel/aws/constants.go around lines 79 to 83, the map entry for
"anthropic.claude-haiku-4-5-20251001-v1:0" incorrectly lists "ap" (APAC) which
is not a documented AWS Bedrock cross-region profile for Claude Haiku 4.5;
remove the "ap" entry or replace it with the correct documented region key
(e.g., "au" for Australia, "jp" for Japan, or a Global flag) and if an APAC
profile is intended use the proper "apac" prefix per AWS naming; update the
constant to match AWS Bedrock docs and verify the region keys in other entries
for consistency.
thanks |
chore: Update AWS claude 4.5 haiku model's information
#2089
更新 AWS claude 4.5 haiku 的模型区域信息