What changed
The Anthropic SDKs released a Bedrock fix on November 20, 2026: anthropic 2.12.0 for Python and @anthropic-ai/bedrock-sdk 1.1.3 for TypeScript.
Amazon Bedrock reads user_profile_id from the request body. It ignores the anthropic-user-profile-id header. Until now the SDKs sent the profile ID as that header, so a profile ID given to AnthropicBedrock (or AsyncAnthropicBedrock in Python) was never applied.
Now the clients move the ID into the body of Messages requests and stop sending the header. If a request body already has user_profile_id, that value wins over the header.
This can break working code. Some Bedrock models 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 silently ignored.
@anthropic-ai/sdk 1.12.0 came out the same day. Its notes do not list this fix. In TypeScript the fix is in @anthropic-ai/bedrock-sdk 1.1.3. Python 2.12.0 and TypeScript 1.12.0 also add the image_dimensions_too_large error code.
Prerequisites
- A project that calls Claude on Amazon Bedrock through
AnthropicBedrock
- AWS credentials for Bedrock, for example in
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION
Steps
- Update the SDK.
For Python:
pip install anthropic==2.12.0
For TypeScript:
npm install @anthropic-ai/bedrock-sdk@1.1.3
-
Find every place you set a user profile ID on a Bedrock client or request.
-
Check which Bedrock models those requests go to. For any model that does not support user profiles, leave the ID off. Otherwise the request now returns 400.
-
If you relied on the profile ID before, know that Bedrock never received it until this release. Profile-based settings start to apply only after you update.
Test it
Send one Messages request with a profile ID to a model that supports user profiles. It should succeed.
Send the same request to a model without user profile support. Expect a 400 error. Remove the ID and it should succeed.
Not confirmed
- The release notes do not list which Bedrock models support user profiles.
- The notes do not show the exact text of the 400 error.