返回全部动态

OpenAI Python SDK v3.40.0 发布:新增提示缓存断点 TTL 选项

原标题:v3.40.0

OpenAI Python SDK Releases一手来源API 更新质量 54

AI 摘要

OpenAI 发布 Python SDK v3.40.0,主要新增 API 层面的 prompt cache 断点 TTL 选项,允许开发者控制提示缓存断点的存活时间。此外修复了 CI 中浏览器演示依赖问题,并升级了 griffe、GitHub Actions 相关依赖及 CodeQL 分析动作。该版本属于常规迭代,对使用提示缓存的开发者有直接配置价值。

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

正文节选

## [3.40.0](https://github.com/openai/openai-python/compare/v3.39.0...v3.40.0) (2026-10-27) ### Features * **api:** add prompt cache breakpoint TTL options ([#4188](https://github.com/openai/openai-python/issues/4188)) ([3596d18](https://github.com/openai/openai-python/commit/3596d18f05b63081fd64c6da82b515293afb98c6)) ### Bug Fixes * **ci:** use an explicit browser demo dependency ([#4185](https://github.com/openai/openai-python/issues/4185)) ([a3f4302](https://github.com/openai/openai-pyt


发布时间:2026-10-27 23:37
抓取时间:2026-10-27 23:39
来源机构:OpenAI
阅读原文github.com