github pydantic/pydantic-ai v1.86.1
v1.86.1 (2026-04-23)

8 hours ago

What's Changed

🐛 Bug Fixes

  • fix(openai): guard against choices=None in streamed chunks (#5165) by @adtyavrdhn in #5170
  • fix(anthropic): send container_id as string on reuse; unwrap broken {id: x} shape by @adtyavrdhn in #5168
  • fix: preserve validation error input on tool-call retries by @DouweM in #5181
  • fix(toolsets): prevent MCPServer.__aexit__ called more times than __aenter__ in DynamicToolset by @anishesg in #5171
  • Warn about dict fields with Anthropic strict mode by @rahulmansharamani14 in #4321
  • Set gen_ai.operation.name=execute_tool on tool-execution spans by @DouweM in #5182
  • fix: avoid stale client references in model and embedding classes by @Deeven-Seru in #4276

New Contributors

Full Changelog: v1.86.0...v1.86.1

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.