Skip to content

Conversation

mattgillard
Copy link
Contributor

added AU inference for bedrock haiku 4.5 - similar to my last contribution for sonnet 4.5.
Couldn't test as its not in models.dev yet - PR submitted for that.
We should have waited a day :P

Comment on lines 124 to 128
if (isAustraliaRegion &&
(modelID.startsWith("anthropic.claude-sonnet-4-5") || modelID.startsWith("anthropic.claude-haiku-4-5"))) {
modelID = `au.${modelID}`
} else {
const modelRequiresPrefix = ["claude", "nova-lite", "nova-micro", "nova-pro"].some((m) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we going to have to add every AU model everytime or can we mimic the thing we do for other regions and handle it with:
const modelRequiresPrefix = ["claude", "nova-lite", "nova-micro", "nova-pro"].some((m) =>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I refactored to follow that existing pattern. Unfortunately prefix anthropic.claude-sonnet-4 exists but isn't in au region, it is in apac region though which probably requires a separate PR.
Haiku can be more general though (at least as of now).

Copy link
Collaborator

Choose a reason for hiding this comment

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

got it that makes sense, you are basically patching the missing models for this specific region

@rekram1-node rekram1-node merged commit ddb2e69 into sst:dev Oct 17, 2025
3 checks passed
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.

2 participants