Anthropic Python SDK v2.6.0
Anthropic Python SDK v2.6.0 adds new API error codes for ramp limits and external key failures, supports signing out organization members globally, improves Bedrock/Vertex error handling, and removes sampling parameters from OpenTelemetry spans.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Anthropic has released version 2.6.0 of its Python SDK. Key updates include: - API Features : Introduced error codes for ramp limit errors and External Key validation failures, and added support for globally signing organization members out. - Bedrock & Vertex Fixes : Platform clients now correctly raise error-code and status exception classes. Copied Bedrock clients (using copy and with options ) now retain custom HTTP clients and AWS profile configurations. - Telemetry & Chores : Ceased recording sampling parameters on OpenTelemetry spans. Standardized status error mappings on the base client and cleared ambient environment variables in test suites. - Documentation : Enhanced descriptions of API error types, messages, codes, and details.
可执行摘要
Anthropic Python SDK v2.6.0 introduces specific error codes for ramp limits and External Key validation failures, alongside an API method to sign organization members out everywhere. Platform clients (Bedrock, Vertex) now raise proper error-code and status exception classes, and custom HTTP clients/AWS profiles persist across copied Bedrock clients. OpenTelemetry spans no longer record sampling parameters.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update exception handling logic if consuming Bedrock or Vertex platform clients to handle newly mapped error-code and status exception classes.
- Verify monitoring dashboards and telemetry pipelines if downstream systems relied on sampling parameters previously captured in OpenTelemetry spans.
- Incorporate new error codes for ramp limit errors and External Key validation failures into client-side retry or alert mechanisms.