PydanticAI v2.37.0 发布:新增 glm-5.3-flash 支持并修复多项问题
原标题:v2.37.0 (2026-08-31)
AI 摘要
PydanticAI 发布 v2.37.0 版本,新增对 glm-5.3-flash 模型的支持,并重构了 Z.AI 测试套件。该版本修复了多个 bug,包括保留剪枝 span 查询中的所有条件、接受并映射 Z.AI 的非标准 finish_reason 值、为包含工具调用的助手消息发出 AG-UI TEXT_MESSAGE_START 事件,以及改进 GoogleModel 中 Vertex 和 Gemini API 的路由逻辑。此外,还优化了持久化操作中的模型管理和 Prefect 工具发现。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * 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 ### 🐛 Bug Fixes * 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/pyd