GeezerVison is showing github.com — deepseek v4 pro开启前思考模式的时候api层丢弃reasoning_content导致接口调用失败 · Issue #24714 · anomalyco/opencode
deepseek v4 pro开启前思考模式的时候api层丢弃reasoning_content导致接口调用失败 #24714DescriptionDescription
OpenCode Go 代理在收到 Hermes 发来的完整请求后,构建给 DeepSeek 的请求时只保留了 OpenAI Chat Completions 标准字段(`role`, `content`, `tool_calls` 等),把非标准的 `reasoning_content` 过滤掉了,进而导致了api接口报错。
Plugins
hermes + opencode go
OpenCode version
使用的opencode go订阅,不是opencode cli
Steps to reproduce
- 安装hermes agent
- 接口opencode go,选择deepseek v4 pro
- 开始对话,对话几轮后会突然开始失败了,返回如下内容,之后除非切换其他模型否这再也无法正常调用
⚠️ API call failed (attempt 1/3): BadRequestError [HTTP 400]
🔌 Provider: opencode-go Model: deepseek-v4-pro
🌐 Endpoint: https://opencode.ai/zen/go/v1
📝 Error: HTTP 400: Error from provider (DeepSeek): The `reasoning_content` in the thinking mode must be passed back to the API.
📋 Details: {'message': 'Error from provider (DeepSeek): The `reasoning_content` in the thinking mode must be passed back to the API.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}
⚠️ Non-retryable error (HTTP 400) — trying fallback...
❌ Non-retryable error (HTTP 400): HTTP 400: Error from provider (DeepSeek): The `reasoning_content` in the thinking mode must be passed back to the API.
❌ Non-retryable client error (HTTP 400). Aborting.
🔌 Provider: opencode-go Model: deepseek-v4-pro
🌐 Endpoint: https://opencode.ai/zen/go/v1
💡 This type of error won't be fixed by retrying.
Screenshot and/or share link
Operating System
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.4 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
Terminal
ubuntu自带的terminal Activityadded coreAnything pertaining to core functionality of the application (opencode server stuff) on Apr 28, 2026github-actions commented on Apr 28, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
- The Description field appears to contain an AI-generated analysis. Please replace it with a concise, first-hand description of the problem you experienced — what you did, what you expected, and what actually happened.
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know. maoxinxu commented on Apr 28, 2026 github-actions commented on Apr 28, 2026 Thanks for updating the issue! It now includes a clear description, steps to reproduce, error logs, a screenshot, and system info. Everything looks good — the compliance flag has been removed. removed bugSomething isn't working coreAnything pertaining to core functionality of the application (opencode server stuff) on May 3, 2026ArmDaniel commented on Jun 19, 2026 trying to push this to have visibility; same error happening on goose right now github-actions commented on Aug 19, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|