Anthropic Python SDK v2.15.0
Anthropic Python SDK v2.15.0 adds Admin API error codes, improves credential token refresh and multi-process handling, tightens structured output validation, and removes retired Claude Sonnet 4.5 model references.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Anthropic Python SDK release v2.15.0 introduces several API updates, bug fixes, and documentation improvements. On the API side, new error codes were added to the Admin API for unconfirmed API key requesters, cost report size limits, and user profile cleared workspace updates. Bug fixes include stricter argument validation in structured output helpers and enhancements to credential lifecycle management: 401 responses now trigger token refreshes even if hooks alter Authorization headers and drop cached tokens when max retries are set to zero. Additionally, a bug causing processes sharing a single login to enter token-refreshing loops was resolved. The release also removes retired Claude Sonnet 4.5 models and clarifies documentation around fast mode beta headers and compliance review policy categories.
可执行摘要
Upgrade to anthropic-python v2.15.0 for improved 401 token refresh handling (including when max retries=0 or hooks modify headers), fix for token-refresh loops in shared login processes, stricter structured output argument checks, and new Admin API error codes.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade to Anthropic Python SDK v2.15.0 if encountering multi-process token refresh loops or 401 handling issues.
- Verify structured output helper calls against stricter argument checks.
- Update any references to retired Claude Sonnet 4.5 models in code or configuration.