Repository navigation
Features
- api: add the image_dimensions_too_large error code
Bug Fixes
-
bedrock: send the user profile ID in the request body
Amazon Bedrock reads
user_profile_idfrom the request body and ignores theanthropic-user-profile-idheader.Anthropic\Bedrock\Clientdropped the header, so a profile ID given to it was not applied.Anthropic\Bedrock\Clientnow sends it in the body of Messages requests. Token counting requests still leave it out. Auser_profile_idalready in the body takes priority over the header.Some models on Bedrock do not support user profiles. A request to one of them with a profile ID now fails with a 400 error; before, the ID was ignored. Leave the ID off requests to those models.
-
client: do not retry a dropped response body when x-should-retry is false
Chores
- docs: clarify billing_policy in batches and two billing errors