Skip to content

chore: Update AWS claude 4.5 haiku model's information - #2098

Merged
seefs001 merged 1 commit into
QuantumNous:mainfrom
HynoR:chore/c1
Oct 28, 2025
Merged

chore: Update AWS claude 4.5 haiku model's information#2098
seefs001 merged 1 commit into
QuantumNous:mainfrom
HynoR:chore/c1

Conversation

@HynoR

@HynoR HynoR commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

#2089
更新 AWS claude 4.5 haiku 的模型区域信息

@coderabbitai

coderabbitai Bot commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

A 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

Cohort / File(s) Change Summary
AWS Model Configuration
relay/channel/aws/constants.go
Added claude-haiku-4-5-20251001 entry to awsModelIDMap mapping to anthropic.claude-haiku-4-5-20251001-v1:0, and corresponding cross-region support entry to awsModelCanCrossRegionMap for us, ap, and eu regions

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • seefs001

Poem

🐰✨ A haiku hops into the AWS realm,
Four-point-five, swiftly crossing seas,
From us to eu, regions at the helm! 🌍

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "chore: Update AWS claude 4.5 haiku model's information" is directly related to the main changes in the changeset, which involve adding a new Claude Haiku 4.5 model entry and its cross-region support mappings to AWS constants. The title is concise, specific, and clearly indicates that this is a maintenance task involving updates to model configuration. A teammate scanning the repository history would immediately understand that this change pertains to AWS Claude model support, making the title appropriately descriptive without being overly broad or vague.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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

📥 Commits

Reviewing files that changed from the base of the PR and between 032f159 and b789658.

📒 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.

Comment on lines +79 to +83
"anthropic.claude-haiku-4-5-20251001-v1:0": {
"us": true,
"ap": true,
"eu": true,
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

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

@zebin-code

Copy link
Copy Markdown

#2089 更新 AWS claude 4.5 haiku 的模型区域信息

thanks

@seefs001
seefs001 merged commit 687e455 into QuantumNous:main Oct 28, 2025
1 check passed
ennnnny pushed a commit to ennnnny/new-api that referenced this pull request Mar 17, 2026
chore: Update AWS claude 4.5 haiku model's information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants