Bedrock's preset gives its Claude and GPT-6 models as global. inference
profiles (global.anthropic.claude-opus-5-5, global.openai.gpt-6-luna),
and a GovCloud account's are us-gov. ones. Bedrock's reply names the
model by its own id, as TestSwappedModel has it for us.anthropic.… .
bareModel stripped a profile's geography with vendorDot, which took two
to four letters only, so global. and us-gov. stayed on and Swapped
marked the route, its tries and the usage row as served by another
model. catalog's bedrockGeos already lists both.
vendorDot now takes global. and us-gov. too. Another model is still a
swap (global.anthropic.claude-opus-5-5 answered as claude-sonnet-5).
Rows and routes kept marked swapped before read as not swapped through
SameSpelled, which uses the same bareModel.
Run: TestBedrockProfileAnsweredByItsModelIsNoSwap fails on the old
served.go (Swapped true for four global./us-gov. pairs; route and usage
row marked swapped through the Bedrock preset to a fake runtime) and
passes with the change; go test -tags nogui ./internal/usage
./internal/gateway green under a temp HOME; gofmt -l clean; GOOS=linux
and GOOS=windows go vet -tags nogui on both packages. Not tried against
a real Bedrock account.
Co-authored-by: ggbdpq <ggbdpq@gmail.com>