开发者在将工作流迁移至 OpenCode CLI + Fox Code 时发现成本异常高昂,经排查发现是因 OpenCode 发起的请求体中缺失“metadata.user_id”字段,导致 Fox Code 无法正确归类缓存上下文,致使 Prompt Cache 功能失效。相比之下,ClaudeCode CLI 因正常携带该字段,成本仅为 OpenCode 的 15%。在补全该字段后,缓存机制恢复正常,费用显著下降。目前该问题已提交给 OpenCode 官方处理。
原文链接:Linux.do
开发者在将工作流迁移至 OpenCode CLI + Fox Code 时发现成本异常高昂,经排查发现是因 OpenCode 发起的请求体中缺失“metadata.user_id”字段,导致 Fox Code 无法正确归类缓存上下文,致使 Prompt Cache 功能失效。相比之下,ClaudeCode CLI 因正常携带该字段,成本仅为 OpenCode 的 15%。在补全该字段后,缓存机制恢复正常,费用显著下降。目前该问题已提交给 OpenCode 官方处理。
原文链接:Linux.do
最新评论
i2znfo
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.info/register?ref=IHJUI7TF
Everyone loves what you guys tend to be up too. This sort of clever work and coverage! Keep up the excellent works guys I've incorporated you guys to blogroll.
handwritten synonym
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/sl/register?ref=GQ1JXNRE
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.info/en/register-person?ref=JHQQKNKN
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.info/register-person?ref=IXBIAFVY