返回全部动态
PydanticAI v2.20.0 发布:支持 Claude Opus 5 与 OpenAI 推理上下文
原标题:v2.20.0 (2026-07-28)
AI 摘要
PydanticAI 发布 v2.20.0 版本,新增对 Claude Opus 5 模型的支持,并为 OpenAI Responses API 的 gpt-5.4/5.5/5.6 系列添加 reasoning.context 支持。同时修复了多个 bug,包括保留任意 RequestUsage 字段、捕获 Anthropic 思考令牌、修复嵌入请求守卫等。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add Claude Opus 5 (`claude-opus-5`) support by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6723 * Add OpenAI Responses API `reasoning.context` support (default `all_turns`) for the `gpt-5.4`/`gpt-5.5`/`gpt-5.6` families by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6673 ### 🐛 Bug Fixes * Preserve arbitrary `RequestUsage` fields across serializa
发布时间:2026-07-29 11:26
抓取时间:2026-08-02 00:30
来源机构:Pydantic