mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-28 00:42:37 -04:00
[e2e] default the Bedrock matrix to Claude Sonnet 4.6
Switch the default Bedrock inference profile to global.anthropic.claude-sonnet-4-6 — the model from the original cost report, invocable from any region including eu-central-1. Sonnet 4.6 dropped the -YYYYMMDD-v1:0 suffix convention, so the id carries no date; AWS_BEDROCK_MODEL / the bedrock_model dispatch input still override. Pricing validation already carries anthropic.claude-sonnet-4-6 at $3/$15 per MTok in both the API-level check and the raw-SQL store audit.
This commit is contained in:
@@ -288,12 +288,16 @@ func availableProviders() []providerCase {
|
||||
if region == "" {
|
||||
region = "eu-central-1"
|
||||
}
|
||||
// A valid Bedrock inference-profile id (region prefix + date + version),
|
||||
// overridable per account. `global.` profiles can be invoked from any
|
||||
// region; set AWS_BEDROCK_MODEL to match the enabled profile for the token.
|
||||
// A valid Bedrock inference-profile id, overridable per account
|
||||
// (AWS_BEDROCK_MODEL; also exposed as the workflow's bedrock_model
|
||||
// dispatch input). `global.` profiles can be invoked from any region,
|
||||
// including eu-central-1. Defaults to Sonnet 4.6 — the model from the
|
||||
// original cost report. Note the suffix convention change: Sonnet 4.6
|
||||
// dropped the -YYYYMMDD-v1:0 suffix that Haiku 4.5
|
||||
// (global.anthropic.claude-haiku-4-5-20251001-v1:0) still carries.
|
||||
model := os.Getenv("AWS_BEDROCK_MODEL")
|
||||
if model == "" {
|
||||
model = "global.anthropic.claude-haiku-4-5-20251001-v1:0"
|
||||
model = "global.anthropic.claude-sonnet-4-6"
|
||||
}
|
||||
ps = append(ps, providerCase{name: "bedrock", catalogID: "bedrock_api", upstream: "https://bedrock-runtime." + region + ".amazonaws.com", apiKey: k, model: model, kind: harness.WireBedrock})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user