pydantic-ai v2.37.0 Adds glm-5.3-flash Support and Bug Fixes
pydantic-ai v2.37.0 introduces support for the glm-5.3-flash model and includes several bug fixes. This integration enhances AI model handling, while the fixes address issues across span queries, finish reasons, tool calls, API routing, and agent tracebacks. Developers using pydantic-ai for AI model interactions, particularly those working with Z.AI or Google Vertex/Gemini APIs, will benefit. The update improves stability and broadens compatibility with different AI service providers and their specific behaviors.
- →Add glm-5.3-flash and rework the Z.AI test suite onto cassettes by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7887
- →preserve all conditions in pruned span queries by @mikemikimike in https://github.com/pydantic/pydantic-ai/pull/7499
- →Accept and map Z.AI's non-standard finish_reason values by @zhj12395 in https://github.com/pydantic/pydantic-ai/pull/7685
- →Skip inactive capability hooks in agent tracebacks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7328
- →Context-manage models rebuilt inside durable operations by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7954
Features (1) ›
- Add glm-5.3-flash and rework the Z.AI test suite onto cassettes by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7887
Fixes (9) ›
- fix preserve all conditions in pruned span queries by @mikemikimike in https://github.com/pydantic/pydantic-ai/pull/7499
- Accept and map Z.AI's non-standard finish_reason values by @zhj12395 in https://github.com/pydantic/pydantic-ai/pull/7685
Emit an AG-UI TEXT_MESSAGE_START for the assistant message that owns a response's tool calls by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7699
Route Vertex-vs-Gemini API branches in GoogleModel by client transport instead of provider name by @thejamesgore in https://github.com/pydantic/pydantic-ai/pull/7280
- Skip inactive capability hooks in agent tracebacks by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7328
- Context-manage models rebuilt inside durable operations by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7954
- Reject per-run capabilities= on DBOS, matching Temporal by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6955
- Journal Prefect tool discovery in tasks by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6966
- Stop rebuilding unmanaged models in durable capability operations by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7972
https://github.com/pydantic/pydantic-ai/releases/tag/v2.37.0
Related 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 ·
- Google ADK Python v1.39.1 Patch Addresses Numerous Fixes Google ADK (Python) Releases ·
- LangChain LangGraph SDK 0.4.4 Released LangGraph Releases ·
- crewAI 1.15.18 Improves Conversational Flows and Agent Stability CrewAI Releases ·