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.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
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.
可执行摘要
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 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- 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.