跳到正文
数字商店
原文
Tibo· @thsottiaux · X·· 2026-10-21精选AI 评分75
AI 导读

OpenAI API 现已支持 12 小时 Prompt 缓存,常驻智能体等场景可在全天跨请求复用指令、工具与上下文并享受更低的输入价格。作者补充表示,针对 Codex 与 Work 的登录用户将永久保留缓存,用户数小时后恢复或返回旧会话无需承担额外惩罚且保证命中缓存。

推荐理由

长时 Prompt 缓存能降低多轮交互与常驻智能体的输入成本,开发者可借此优化长周期会话的上下文复用策略。

正文 · 原文

Day 16/

You can now cache for 12h in the API and for logged in users across Codex & Work we keep cache forever and you don’t have any penalty for coming back to an old conversation or resuming after a few hours and are now guaranteed to hit the cache.

引用OpenAI Developers@OpenAIDevs
You can now choose 12-hour prompt caching in the API. Persistent agents, like dots, reuse context throughout the day. You can keep shared instructions, tools, and context cached longer and pay the lower cached-input rate, even when requests are hours apart.
在 X 查看被引用的帖子

来源:Tibo · x.com