Anthropic Python SDK v2.12.0 adds image_dimensions_too_large error code and fixes Bedrock user profile handling
The update introduces a new error code for oversized images and corrects how user profile IDs are sent to Amazon Bedrock, ensuring compatibility with Bedrock’s API expectations.
1 source · cross-referenced
- Version 2.12.0 of the Anthropic Python SDK introduces a new error code for oversized images.
- The release fixes a bug where user profile IDs were not being sent correctly to Amazon Bedrock.
- The SDK now sends user_profile_id in the request body for Bedrock, aligning with Bedrock’s API requirements.
- Requests to Bedrock models that do not support user profiles now fail with a 400 error if a profile ID is included.
The Anthropic Python SDK v2.12.0 includes a new error code, `image_dimensions_too_large`, to explicitly signal when an image’s dimensions exceed supported limits. This change helps developers identify and address issues with image inputs more precisely during API interactions.
A bug affecting Amazon Bedrock integration has been resolved. Previously, the SDK sent the `anthropic-user-profile-id` header to Bedrock, but Bedrock’s API ignores this header and instead reads the `user_profile_id` from the request body. As a result, user profile IDs provided to `AnthropicBedrock` or `AsyncAnthropicBedrock` were not being applied. The update modifies both clients to include the `user_profile_id` in the body of Messages requests and removes the now-redundant header. If a `user_profile_id` is already present in the request body, it takes precedence over the header value.
The release also clarifies documentation around billing policies for batches and two billing-related errors. While these changes do not alter functionality, they improve transparency for developers managing billing workflows.
For models on Bedrock that do not support user profiles, requests including a `user_profile_id` will now fail with a 400 error. Anthropic advises developers to omit the profile ID when using such models to avoid these errors.
- Dec 2, 2026 · GitHub · huggingface/transformers releases
Hugging Face Transformers v5.24.0 adds multimodal and speech models, new architectures
Trust79 - Dec 2, 2026 · GitHub · vllm-project/vllm releases
vLLM v0.34.0 drops Model Runner V1, enables extensible KV cache by default, and adds 10 new models
Trust79 - Dec 2, 2026 · AWS — AI News
AWS Emulator launches generally available local environment for AWS API interactions
Trust79