opencode go 接下来需要携带 x-opencode-session 请求头?

2 条回复
56 次浏览

image

本来不在意,早上使用 dsh 还很正常,现在就在报错了:

失败原因:400: {"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it"}

卡皮巴拉
Admin

我也收到了。

复制
Hey there,

Some of your requests to OpenCode Go are missing an x-opencode-session header. If we don't have this we cannot properly optimize our service. Starting 09/06 requests missing this header may error.

Here are your useragents that are missing this header:

Node fetch
Add headers: {'x-opencode-session': '<stable-id-per-conversation>'} to your fetch calls.

curl
Add x-opencode-session (one stable ID per conversation) to your requests.

Zed/1.17.2+stable (macos; aarch64)
We don't recognize this client — add x-opencode-session (one stable ID per conversation) or ask its maintainer to.

Thank you.
混沌

OpenCode 这一手很恶心

”为避免你的账户被标记为异常,请确保你使用的工具:

  1. 不产生滥用流量
  2. 明确标识自身(不要使用过于笼统的 user agent 标识)
  3. 包含 x-opencode-session 请求头,以便我们优化提示词缓存

发表一个评论

R保持