pydantic-ai Releases
191 releases of pydantic/pydantic-ai
- v2.42.0v2.42.0 (2026-09-08)
This release introduces a new GitHub Copilot provider, improves validation for tool results, and includes several bug fixes for Anthropic Bedrock and JSON schema handling.
Sep 9, 2026
- v2.41.0v2.41.0 (2026-09-07)
This release introduces a direct image generation API and a new `openai-codex` provider for subscription authentication. It also deprecates `fallback_model` in favor of `fallback_subagent_model` for `ImageGeneration` and `XSearch`, alongside bug fixes for Anthropic usage reporting and Bedrock error handling.
Sep 8, 2026
- v2.40.0v2.40.0 (2026-09-04)
This release adds robust support for real-time interactions, including barge-in handling, asynchronous background price updates, and new event-driven capabilities. It also introduces several utility methods for managing sessions and models more effectively.
Sep 5, 2026
- v2.39.0v2.39.0 (2026-09-03)
This release introduces support for the new OpenAI `gpt-6-astra` model and includes several bug fixes related to instrumentation, context export caching, and Azure content filtering. It also restores specific configuration options for the Instrumentation spec.
Sep 4, 2026
- v2.38.0v2.38.0 (2026-09-03)
This release introduces support for new AI models including Gemini 3.8 Flash and Claude Fable/Mythos 5.1, alongside new context tracking capabilities. It also allows applications to emit custom events into the run event stream and includes various bug fixes for streaming and tool handling across different providers.
Sep 3, 2026
- v2.38.1v2.38.1 (2026-09-02)
This release introduces support for new AI models including Gemini 3.8 Flash and Claude Fable/Mythos 5.1, adds a VLLM provider, and enhances event streaming with typed events. It also includes numerous bug fixes for DeepSeek, Anthropic, and Bedrock integrations.
Sep 3, 2026
- v2.37.0v2.37.0 (2026-08-31)
This release introduces support for the new `glm-5.3-flash` model and improves the stability of Z.AI integrations. It includes several bug fixes related to span queries, finish reasons, and GoogleModel routing, alongside improvements to durable operations and tool discovery for Prefect.
Sep 1, 2026
- v2.36.0v2.36.0 (2026-08-28)
This release introduces `@durable_operation` for third-party execution engines, adds `--mcp-config` support and streaming to `clai`, and improves audio handling by accepting async iterables.
Aug 29, 2026
- v2.35.3v2.35.3 (2026-08-27)
Primarily a bug fix release addressing Heroku GLM model routing, cookie scoping for downloads, and durable execution error handling.
Aug 28, 2026
- v2.35.2v2.35.2 (2026-08-27)
This maintenance release focuses on bug fixes and dependency updates for Pydantic AI. It addresses specific issues related to GLM model routing, cookie scoping, and durable execution error handling.
Aug 27, 2026
- v2.35.1v2.35.1 (2026-08-26)
Focuses on bug fixes including Bedrock guardrail traces, Temporal cancellation behavior, and dependency version management.
Aug 27, 2026
- v2.35.0v2.35.0 (2026-08-25)
Introduces deprecations for legacy capability attributes and reduces the frequency of Temporal metric exports.
Aug 26, 2026
- v2.34.0v2.34.0 (2026-08-24)
Adds support for GLM-5.3 and a LangChain migration skill, alongside fixes for `TestModel` generation and various adapter issues.
Aug 25, 2026
- v2.33.0v2.33.0 (2026-08-20)
This release addresses compatibility issues caused by the `anthropic` library upgrading to version 1.0.0, which removed support for legacy `httpx`. It updates dependencies to support the new SDK and modifies the `AnthropicProvider` to require `httpx2.AsyncClient` for custom clients.
Aug 21, 2026
- v2.32.2v2.32.2 (2026-08-20)
A maintenance release focusing on bug fixes for evaluation tasks, realtime session behavior, and URL recognition to improve stability.
Aug 21, 2026
- v2.32.1v2.32.1 (2026-08-19)
A hotfix release addressing issues with synchronous callbacks, Anthropic thinking blocks, and function model callables to prevent runtime errors.
Aug 20, 2026
- v2.32.0v2.32.0 (2026-08-18)
Migrates to `httpx2` as the standard HTTP client library and introduces instrumentation version 6, alongside improvements for tool handling and model name suggestions.
Aug 19, 2026
- v2.31.1v2.31.1 (2026-08-17)
Fixes compatibility issues with Bedrock and Gemini models to ensure structured output and thinking levels function correctly across different providers.
Aug 18, 2026
- v2.31.0v2.31.0 (2026-08-14)
This release introduces flexibility in UI event stream construction and fixes issues related to model fallback attribution and OpenAI resource imports.
Aug 15, 2026
- v1.107.5v1.107.5 (2026-08-13)
A security patch addressing a Host header validation vulnerability in the local dev web chat UI to prevent DNS rebinding attacks.
Aug 14, 2026