Files
Alex Gunnarson df48a139ce bedrock: Add Claude Opus 5.5 BYOK support (#64685)
## Summary

Add Claude Opus 5.5 to the Amazon Bedrock BYOK provider. Upstream #64627
added Opus 5.5 to the Anthropic provider; this brings the same model to
Bedrock.

The model mirrors the Opus 5 definition: 1M context window, 128K max
output, tool use, image input, prompt caching, and adaptive thinking
(including xhigh effort). Cross-region inference profiles cover global,
us, ca, eu, au, and jp. Opus 5.5 publishes a jp geo profile that Opus 5
does not.

## Model-level behavior

Opus 5.5 carries model-level constraints, matching the Anthropic
provider:

- Opus 5.5 always runs adaptive thinking and rejects an explicit
thinking.type.disabled opt-out, so the provider never sends one. This
also fixes a substring bug where claude-opus-5-5 matched the Opus 5
request id and incorrectly received the opt-out.
- Adaptive thinking does not accept sampling controls, so temperature is
omitted (top_k and top_p were already unset), as the Anthropic provider
does.
- Forced tool use (tool_choice any) is reported as unsupported by
reusing the shared anthropic::supports_forced_tool_use list, since
Bedrock friendly ids match Anthropic model ids. Automatic tool use is
unaffected, and no other Bedrock model changes behavior.

## Tests

- bedrock: model id, request id, display name, token limits, thinking
modes, and cross-region inference (including jp) for Opus 5.5.
- language_models: Opus 5.5 omits the thinking opt-out and temperature,
and rejects only forced tool choice.

Release Notes:

- Added Claude Opus 5.5 support to the Amazon Bedrock provider

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-10-09 14:57:03 +00:00
..