mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
added AU inference for bedrock haiku 4.5 (#3206)
Co-authored-by: Matt Gillard <matt-github@gillard.biz>
This commit is contained in:
@@ -121,8 +121,11 @@ export namespace Provider {
|
|||||||
}
|
}
|
||||||
case "ap": {
|
case "ap": {
|
||||||
const isAustraliaRegion = ["ap-southeast-2", "ap-southeast-4"].includes(region)
|
const isAustraliaRegion = ["ap-southeast-2", "ap-southeast-4"].includes(region)
|
||||||
if (isAustraliaRegion && modelID.startsWith("anthropic.claude-sonnet-4-5")) {
|
if (isAustraliaRegion && ["anthropic.claude-sonnet-4-5", "anthropic.claude-haiku"].some((m) =>
|
||||||
modelID = `au.${modelID}`
|
modelID.includes(m),
|
||||||
|
)) {
|
||||||
|
regionPrefix = "au"
|
||||||
|
modelID = `${regionPrefix}.${modelID}`
|
||||||
} else {
|
} else {
|
||||||
const modelRequiresPrefix = ["claude", "nova-lite", "nova-micro", "nova-pro"].some((m) =>
|
const modelRequiresPrefix = ["claude", "nova-lite", "nova-micro", "nova-pro"].some((m) =>
|
||||||
modelID.includes(m),
|
modelID.includes(m),
|
||||||
|
|||||||
Reference in New Issue
Block a user