Pydantic-AI v2.39.0 Release Delivers Multiple Bug Fixes
Pydantic-AI version 2.39.0 has been released, focusing entirely on resolving several critical bugs. Key fixes include addressing `context_subtree()` exporter cache and span-processor leaks, restoring an instrumentation spec option, and improving detection of Azure content-filter errors. The update also refines the handling of speech finalized by tool calls and attribution of tool-returned media. These patches enhance the stability and reliability of the Pydantic-AI library, particularly for developers integrating with Azure services and managing media-rich AI interactions.
- →Fix the context_subtree() exporter cache and its span-processor leaks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7667
- →Emit speech finalized by a tool call on stream_transcripts() by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8062
Fixes (5) ›
- Fix the context_subtree() exporter cache and its span-processor leaks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7667
Restore the Instrumentation spec option include_model_request_parameters and sharpen the undeclared-attribute merge error by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8046
Detect Azure content-filter errors for AzureProvider and for AsyncAzureOpenAI clients on OpenAIProvider by @quinnarnold in https://github.com/pydantic/pydantic-ai/pull/7922
- Emit speech finalized by a tool call on stream_transcripts() by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8062
Attribute tool-returned media to its originating tool call when it can't ride the tool result by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7830
https://github.com/pydantic/pydantic-ai/releases/tag/v2.39.0
Related releases
- Pydantic-AI v2.38.1 Adds Gemini/Claude Models, vLLM Support, and Context Window Features Pydantic AI Releases ·
- Pydantic-AI v2.38.0 Adds New Gemini and Claude Models, VLLM Provider, and Event Streaming Pydantic AI Releases ·
- pydantic-ai v2.37.0 Adds glm-5.3-flash Support and Bug Fixes Pydantic AI Releases ·
- Pydantic AI 2.36.0 Release Introduces Durable Operations and Tool-Call Streaming Pydantic AI Releases ·
- Pydantic-AI v2.35.3 Patch Release Addresses Several Bug Fixes Pydantic AI Releases ·
- pydantic-ai v2.35.2 Patches GLM Routing and Tooling Issues Pydantic AI Releases ·