返回全部动态

Anthropic Python SDK 发布 v2.5.0

原标题:v2.5.0

Anthropic Python SDK Releases一手来源API 更新质量 63

AI 摘要

Anthropic 发布 Python SDK v2.5.0,新增错误详情类型与错误码、工作区列表的 ids 过滤,并为 HTTP 状态码和 API 错误码增加错误类。修复涉及 Bedrock 模型名为空或为“.”“..”时的路径校验、Vertex 请求路径编码、线程安全解析及工具内存目录保护等问题。此次更新提升了 SDK 的错误处理能力和安全性。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

### Features * **api:** add error details types and new error type values * **api:** add ids filter to list workspaces * **client:** add error classes for HTTP statuses and API error codes, and error_code, details and api_message on APIStatusError ### Bug Fixes * **api:** capitalize CMEK in error details type names * **api:** move some error details types to the resource they describe * **bedrock:** raise a ValueError when model is "." or ".." instead of sending the request to a different pa


发布时间:2026-11-05 04:27
抓取时间:2026-11-05 04:40
来源机构:Anthropic
阅读原文github.com