bedrock: Fix Claude 4 output token bug (#31599)

Release Notes:

- Fixed an issue preventing the use of Claude 4 Thinking models with Bedrock
This commit is contained in:
Shardul Vaidya 2025-06-04 01:57:31 -04:00 committed by GitHub
parent ac15194d11
commit 09a1d51e9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,9 @@ impl Model {
| Self::Claude3_5Haiku
| Self::Claude3_7Sonnet
| Self::ClaudeSonnet4
| Self::ClaudeOpus4 => 200_000,
| Self::ClaudeOpus4
| Self::ClaudeSonnet4Thinking
| Self::ClaudeOpus4Thinking => 200_000,
Self::AmazonNovaPremier => 1_000_000,
Self::PalmyraWriterX5 => 1_000_000,
Self::PalmyraWriterX4 => 128_000,