返回全部动态
PydanticAI v2.17.0 发布:性能优化与 Model Armor 修复
原标题:v2.17.0 (2026-07-23)
AI 摘要
PydanticAI 发布 v2.17.0 版本,主要新增功能包括:RequestUsage 和 RunUsage 支持任意字段,为即将推出的 genai-prices 做准备;缓存每条消息的 OTel 序列化,避免 O(n²) 的插桩开销。同时修复了 Model Armor 响应块中 ContentFilterError 的识别问题,并记录了审核 wire-truth 磁带。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Make `RequestUsage` and `RunUsage` support arbitrary fields for upcoming genai-prices by @alexmojaki in https://github.com/pydantic/pydantic-ai/pull/6683 * Cache per-message OTel serialization to avoid `O(n²)` instrumentation cost by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6635 ### 🐛 Bug Fixes * Fix `ContentFilterError` for real Model Armor response blocks (`
发布时间:2026-07-24 08:32
抓取时间:2026-08-02 00:30
来源机构:Pydantic