返回全部动态

PydanticAI v2.51.0 发布:新增 OpenAI GPT-Live 支持

原标题:v2.51.0 (2026-09-25)

PydanticAI Releases一手来源开源质量 71

AI 摘要

PydanticAI 发布 v2.51.0,新增 OpenAILiveModel 以支持 OpenAI GPT-Live 实时模型,并在实时会话中暴露 context_window_used。该版本还修复了多项实时交互问题,包括 Gemini Live 图像重发、OpenAI Realtime 工具调用元数据保留,以及通过缓存 agent graph、减少 RunContext 拷贝等方式优化性能。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at 39328d5b0d4cce94d513b6afcd2b3191bd5708d5 --> ## What's Changed ### ⚠️ Compatibility Notes * Match dated `gemini-3.8-live` ids, reject `google_affective_dialog` on Gemini 3.1 Flash Live and 3.8 Live at connect, and raise `RealtimeError` for Gemini Live close codes by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8761 * Raise a `UserError` for a realtime `tool_choice` that forces a tool call on OpenAI, Azure Open


发布时间:2026-09-26 07:19
抓取时间:2026-09-26 08:15
来源机构:Pydantic
阅读原文github.com