⚠️ 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 using an Anthropic model. Apologies for the breakage window.
- Fix: upgrade to
pydantic-aiv2.33.0, which requires and supportsanthropic>=1.0.0. - If you need to stay on an older pydantic-ai: pin
anthropic<1.
If you pass your own http_client to AnthropicProvider, it must now be an httpx2.AsyncClient — the 1.x SDK rejects legacy httpx clients at construction.
What's Changed
⚠️ Compatibility Notes
- Use
httpx2for Anthropic clients by @dsfaccini in #7657
Full Changelog: v2.32.2...v2.33.0