Anthropic Python SDK v2.7.0 发布
原标题:v2.7.0
AI 摘要
Anthropic 发布 Python SDK v2.7.0,新增 claude-fable-5-2 和 claude-mythos-5-2 两个模型,并支持组织 webhook 的 user_profile.program_status_updated 事件、用量与成本报表的父组织过滤与分组,以及 Admin API 写方法的 sandbox_egress_restricted 错误。同时修复了 Bedrock、Vertex 客户端的 parse 与 count_tokens 缺失、请求签名与自定义 header 读取等问题。
正文节选
### Features * **api:** accept user_profile.program_status_updated on organization webhook endpoints * **api:** add claude-fable-5-2 and claude-mythos-5-2 * **api:** add parent organization filtering and grouping to the usage and cost reports * **api:** add the sandbox_egress_restricted error to Admin API write methods * **api:** add the user_profile.program_status_updated webhook event ### Bug Fixes * **bedrock,vertex:** add the parse and count_tokens methods missing from beta.messages.with