opencode go 套餐中部分模型使用报错【API key is invalid】问题临时解决方案 #3538
|
我理解问题原因是deepseek harness对于opencode的go套餐可用模型还是停留在之前的可用模型列表,所以目前在添加模型的时候需要选择自定义,后续待官方同步后再配置 然后填好API Key,在API地址处填写:https://opencode.ai/zen/go/v1。就可以点击获取最新的可用模型列表自行裁剪了 |
Replies: 3 comments 3 replies
|
opencode 那边有个选项 勾选 启用部署在中国的模型 就可以了 |
|
There is a second boundary worth preserving here: a successful Go model listing does not make every returned model callable through one DSH custom route. The current official OpenCode Go table mixes three endpoints and protocols under the same
In DSH rc.8, Fetch available models reads ids, optional names, and optional capacity fields from A safer setup is three protocol-homogeneous DSH provider routes sharing the same credential reference and Go base prefix. The Messages route must be entered manually because rc.8 intentionally limits network discovery to OpenAI Completions and Responses listings. The reported account option for models deployed in China is a separate entitlement and data-residency decision. It can change model availability, but it should not be treated as a universal fix for a wrong request path. Full rc.8 routing examples and evidence matrix: canonical guide · visual map. Disclosure: I maintain the independent SandBase DeepSeek Harness Handbook. |
|
你最后整理的“三条协议同质 route”方案是正确边界:Go 目录混合 Chat Completions、Responses 和 Anthropic Messages,而一个 route 只能有一个 api。不要把 |



Understood. Then performing the configuration multiple times according to the protocol should be a better temporary solution.