返回全部动态

PydanticAI v2.42.0 发布:新增 GitHub Copilot 支持与多项修复

原标题:v2.42.0 (2026-09-08)

PydanticAI Releases一手来源产品发布质量 69

AI 摘要

PydanticAI 发布 v2.42.0 版本,新增 GitHub Copilot 的 OpenAI 兼容 API 提供器,并修复了多个 bug,包括 Bedrock 模型对 Anthropic 采样设置的尊重、代码模式中非对象 $ref 的内联解析等。该版本还包含兼容性说明,拒绝无效的 DeferredToolResults.approvals 值。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### ⚠️ Compatibility Notes * Reject invalid `DeferredToolResults.approvals` values by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/8081 ### 🚀 Features * Add a `GitHubCopilotProvider` for GitHub Copilot's OpenAI-compatible API by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/8059 ### 🐛 Bug Fixes * Honor `anthropic_disallows_sampling_settings` in `BedrockConverseModel`


发布时间:2026-09-09 11:33
抓取时间:2026-09-09 12:02
来源机构:Pydantic
阅读原文github.com