Model BehaviorAutomated release watch

Anthropic Python SDK v2.12.0

Anthropic Python SDK v2.12.0 adds an image dimensions error code, updates Bedrock client handling to pass user profile IDs via the request body instead of headers, and updates documentation.

Human read

Why this signal matters

Anthropic Python SDK release v2.12.0 introduces support for an 'image dimensions too large' API error code. For Amazon Bedrock integrations, AnthropicBedrock and AsyncAnthropicBedrock now include the user profile ID directly in the request body for Messages requests instead of relying on the anthropic-user-profile-id header, which Bedrock ignores. Any profile ID already present in the body takes precedence. Note that Bedrock models that do not support user profiles will now fail with a 400 error rather than silently ignoring the ID. Additionally, documentation regarding batch billing policies and two billing errors has been clarified.

Agent parse

Actionable summary

Anthropic Python SDK v2.12.0 moves user profile ID serialization for AnthropicBedrock/AsyncAnthropicBedrock into the request body. Bedrock models lacking user profile support now throw a 400 error if an ID is provided. A new API error code for oversized image dimensions was also added.

Agent usefulness
77/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • Verify Amazon Bedrock requests do not pass a user profile ID to models that do not support it, to avoid new 400 errors.
  • Handle the new API error code for oversized image dimensions when sending image payloads.
Classification

Tags and routing

anthropicsdkpython
Related signals

Continue the thread