返回全部动态

PydanticAI v2.33.0 修复 Anthropic SDK 兼容性问题

原标题:v2.33.0 (2026-08-20)

PydanticAI Releases一手来源产品发布质量 69

AI 摘要

PydanticAI 发布 v2.33.0 版本,修复了因 Anthropic SDK 1.0.0 基于 httpx2 重构而导致的兼容性问题。此前版本允许安装 anthropic 1.0.0 但运行时失败,新版本要求并支持 anthropic>=1.0.0,并改用 httpx2 客户端。用户若需保留旧版 pydantic-ai,应固定 anthropic<1。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## ⚠️ If Anthropic stopped working for you in the last day `anthropic` 1.0.0 — rebuilt on `httpx2`, with legacy `httpx` support removed — reached PyPI on August 20. Every earlier pydantic-ai release, including v2.32.2 cut a few hours before this one, allowed that version without supporting it: a fresh or unpinned install of `pydantic-ai[anthropic]` could resolve `anthropic` 1.0.0 and then fail at runtime when u


发布时间:2026-08-21 12:53
抓取时间:2026-08-21 13:02
来源机构:Pydantic
阅读原文github.com