跳到正文
数字商店
原文
Peter Steinberger· @steipete · X·· 12 天前精选AI 评分73
AI 导读

作者在 OpenClaw 中提交了一个修复,针对使用嵌入式 harness 而非 codex 的用户解决缓存问题。据引用内容称,GPT-6.2 Astra 和 Sol 在 Responses API 的顶层指令字段中存在缓存失效 Bug,导致缓存命中率从 97.4% 降至 46.4%,且 OpenAI 诊断报告可能错误显示命中;目前的临时方案是将系统提示词放入输入端的首条 developer message 中。

推荐理由

提供了针对特定模型缓存 Bug 的修复方案及临时规避方法,可帮助开发者降低 API 成本。

正文 · 原文

Landed a fix for that in OpenClaw yesterday (for the few folks using the embedded harness instead of codex, since it’s a plugin), most harnesses aren’t updated yet.

引用bebu@bebuu_ai
If your GPT-6.2 Astra or Sol API bills suddenly went up this week, there's another caching bug worth knowing about. OpenAI Codex issue #62312 found that on GPT-6.2 Astra and Sol, anything placed in the top-level instructions field of a Responses API request isn't actually cached. It stays at 0 cached tokens on every turn, even though OpenAI's own diagnostics incorrectly report a cache hit. The impact is pretty big. Moving from GPT-6.1 Sol to 6.2 Sol dropped actual cache hit rates from 97.4% to 46.4%, meaning 64K–72K system tokens were billed at full price on every step. There's already a workaround in OpenCode: put the system prompt inside a leading developer message in input.
在 X 查看被引用的帖子

来源:Peter Steinberger · x.com