返回全部动态
PydanticAI v2.21.0 发布:新增输入令牌限制与稳定性修复
原标题:v2.21.0 (2026-07-29)
AI 摘要
PydanticAI 发布 v2.21.0 版本,新增了 UsageLimits 中的 per_request_input_tokens_limit 功能,并修复了 KnownModelName 刷新问题。该版本更新了 Gateway 探测和 Google 图像 ID 的稳定性。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * feat(usage): add `per_request_input_tokens_limit` to `UsageLimits` by @Oxygen56 in https://github.com/pydantic/pydantic-ai/pull/5907 ### 🐛 Bug Fixes * Refresh `KnownModelName` from Gateway probes and stable Google image IDs by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6806 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.20.0...v2.21.0
发布时间:2026-07-30 09:59
抓取时间:2026-08-02 00:30
来源机构:Pydantic