PydanticAI v2.34.0 发布:新增 LangChain 迁移技能与 GLM-5.3 支持
原标题:v2.34.0 (2026-08-24)
AI 摘要
PydanticAI 发布了 v2.34.0 版本,新增了 LangChain 迁移技能和 GLM-5.3 模型支持,并修复了多个 bug,包括 TestModel 生成、UIEventStream 状态、Cerebras 模型设置、VercelAIAdapter 推理部分、CohereModel 工具调用、Groq 配置文件、SpanQuery 最大值、Retry-After 日期处理、工具重试预算以及 Bedrock 的 r1 别名识别等问题。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add a LangChain migration skill by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/7679 * Add GLM-5.3 support to `ZaiModel` by @aisk in https://github.com/pydantic/pydantic-ai/pull/7600 ### 🐛 Bug Fixes * Fix `TestModel` generation for equal inclusive bounds by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7642 * Render enum $refs as `Literal` in `Fun