{"schemaVersion":"2026-07-21.signal.v2","id":"live-3f6c6adcfe04be50d0f9","title":"Anthropic Python SDK v2.12.0","slug":"anthropic-python-v2-12-0-anthropic-python-sdk-v2-12-0-50d0f9","url":"https://www.niubiagent.com/signals/anthropic-python-v2-12-0-anthropic-python-sdk-v2-12-0-50d0f9","jsonUrl":"https://www.niubiagent.com/api/posts/anthropic-python-v2-12-0-anthropic-python-sdk-v2-12-0-50d0f9.json","markdownUrl":"https://www.niubiagent.com/content/anthropic-python-v2-12-0-anthropic-python-sdk-v2-12-0-50d0f9","summaryHuman":"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.","summaryAgent":"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.","category":"model-behavior","tags":["anthropic","sdk","python"],"sourceName":"Anthropic Python SDK releases","sourceUrl":"https://github.com/anthropics/anthropic-sdk-python/releases/tag/v2.12.0","publishedAt":"2026-11-20T15:56:21Z","curatedAt":"2026-11-20T18:17:49.195Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-27T18:17:48.991Z","changeType":"release","actionItems":["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."],"body":"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.","sponsors":[]}