DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: 无法使用 OpenCode Go 的大多数模型

Open haoyuenan opened this issue 5 months ago • 3 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.11.1

What happened?

自己配置接入了OpenCode Go,然后选择deepseek-v4-flash,持续报错。再次测试其他模型,发现只有切换到OpenCode GO的minimax-m3模型可以使用,其余kimi,qwen,mimo等等全部报错。

如果我切换到 DeepSeek 官方 API 就可以正常使用。

Steps to reproduce

运行CLI版本或者桌面版均可,配置好OpenCode GO,选择deepseek-v4-flash,随便输出任何问题,都会得到错误。

OS / platform

Windows 11

Relevant logs or output

错误: 请求格式错误 (HTTP 400):请求体被拒绝,通常是程序缺陷。若持续出现请反馈。
Error from provider (DeepSeek): Failed to deserialize the JSON body into the target type: tools[0].function: missing field `name` at line 1 column 12172

haoyuenan avatar Jun 25 '26 02:06 haoyuenan

这是把opencode go的api接到reasonix上用吗,这样的做是为了省token吗

StevenH7-S avatar Jun 25 '26 04:06 StevenH7-S

是正常的 , 你看下你的配置是不是有异常,

Image Image Image

zhannan-cn avatar Jun 25 '26 05:06 zhannan-cn

Image看这里每个模型支持的协议不一样,你可以分开两个opencode go自定义 走不同的协议

dfwqdyl-ui avatar Jun 25 '26 16:06 dfwqdyl-ui

新版本没遇到这个问题,但是经常出现等半天这里一点反应都没有,token数一直不变:

Image

whiteS18 avatar Jul 03 '26 06:07 whiteS18

Fixed by #5895, merged into main-v2.

The OpenCode Go setup is now split into curated presets for the different protocol routes instead of asking users to put all models behind one manually configured provider. In particular, #5895 adds separate OpenCode Go OpenAI-compatible and Anthropic-compatible presets, plus an OpenCode Zen Anthropic preset. That avoids mixing models that need different request protocols under one provider configuration, which was the main cause of the failing OpenCode Go model calls here.

Verified in #5895 by green GitHub CI, including desktop, coverage, race, and Windows/macOS/Ubuntu tests. Closing this as completed. If the same provider still fails after using the new presets in a build from the updated main-v2, please open a fresh issue with the selected preset/model and the provider error body.

SivanCola avatar Jul 04 '26 03:07 SivanCola