返回全部动态

PydanticAI 发布 v2.45.0:新增 TypeSafeModel 并修复多项问题

原标题:v2.45.0 (2026-09-17)

PydanticAI Releases一手来源开源质量 62

AI 摘要

PydanticAI 发布 v2.45.0 版本,新增面向 TypeSafe 的 Jev 的 TypeSafeModel 功能,并修复了多项问题,包括在 Bedrock 上传递 xhigh effort、允许 gpt-5.6-sol/luna/terra 在 Bedrock Converse 上使用、优化 DynamicToolset 与 MCP 会话在 durable run 中的复用、保留 MCPSamplingModel 的工具历史、移除对旧版 httpx 的导入以及按 agent run 报告用量。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add `TypeSafeModel` for TypeSafe's Jev by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/8450 ### 🐛 Bug Fixes * Pass `xhigh` effort through on Bedrock when the model profile supports it by @willfrey in https://github.com/pydantic/pydantic-ai/pull/8392 * Allow `gpt-5.6-sol`, `gpt-5.6-luna`, and `gpt-5.6-terra` on Bedrock Converse by [@pydanty](https://github.com/app


发布时间:2026-09-18 12:31
抓取时间:2026-09-19 18:03
来源机构:Pydantic
阅读原文github.com