Files
zed/crates/language_models
Prakhar Mishra f621145963 bedrock: Add support for Claude Sonnet 5.5 and Claude Haiku 5.5 (#67212)
## Summary

Closes #67109

Adds support for Anthropic's Claude Sonnet 5.5 and Claude Haiku 5.5 to
the Amazon Bedrock BYOK provider:

- Registered `ClaudeSonnet5_5` and `ClaudeHaiku5_5` models with standard
and `-thinking` aliases.
- Configured model IDs (`anthropic.claude-sonnet-5-5`,
`anthropic.claude-haiku-5-5`) and cross-region inference profiles
(`global`, `us`, `eu`).
- Set 1,000,000 context token count and 128,000 output token limit.
- Handled Bedrock-specific constraints:
- Sonnet 5.5 rejects forced tool use (`tool_choice: Any`), rejects
`thinking: {"type": "disabled"}` (maps to `thinking: {"type":
"between_tools"}` when thinking is suppressed), and omits sampling
temperature.
- Haiku 5.5 allows forced tool use, explicitly opts out of default
adaptive thinking with `thinking: {"type": "disabled"}` when thinking is
suppressed, and omits sampling temperature.

## Testing

Ran automated test suites:

- `cargo test -p bedrock --features serde/derive` (34 passed, 0 failed)
- `cargo test -p language_models --lib --provider::bedrock` (40 passed,
0 failed)
- Verified formatting with `rustfmt --check`.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] Tests cover the new or changed behavior.

Release Notes:

- Added support for Claude Sonnet 5.5 and Claude Haiku 5.5 in Amazon
Bedrock.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-11-23 05:27:26 +00:00
..