GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deepseek v4 pro开启前思考模式的时候api层丢弃reasoning_content导致接口调用失败 · Issue #24714 · anomalyco/opencode

deepseek v4 pro开启前思考模式的时候api层丢弃reasoning_content导致接口调用失败 #24714

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
deepseek v4 pro开启前思考模式的时候api层丢弃reasoning_content导致接口调用失败#24714
Copy link
Assignees
rekram1-node

Description

@maoxinxu
maoxinxu
opened on Apr 28, 2026
Issue body actions

Description

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

  1. 安装hermes agent
  2. 接口opencode go,选择deepseek v4 pro
  3. 开始对话,对话几轮后会突然开始失败了,返回如下内容,之后除非切换其他模型否这再也无法正常调用
⚠️  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

Image

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

Activity

  1. maoxinxu
    added
    bugSomething isn't working
    on Apr 28, 2026
  2. github-actions
    assigned
    rekram1-node
    on Apr 28, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 28, 2026
  4. github-actions commented on Apr 28, 2026

    @github-actions
    github-actionsBot
    on Apr 28, 2026 – with GitHub Actions
    Contributor
    More actions

    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:

    • DeepSeek V4 Pro (OpenRouter) reasoning_content error - v1.14.27 #24569: Same error — DeepSeek V4 Pro reasoning_content in thinking mode must be passed back to the API

    If you believe this was flagged incorrectly, please let a maintainer know.

  5. github-actions
    added
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 28, 2026
  6. maoxinxu commented on Apr 28, 2026

    @maoxinxu
    maoxinxu
    on Apr 28, 2026
    Author
    More actions

    已经修改了描述信息

  7. github-actions
    removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 28, 2026
  8. github-actions commented on Apr 28, 2026

    @github-actions
    github-actionsBot
    on Apr 28, 2026 – with GitHub Actions
    Contributor
    More actions

    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.

  9. thdxr
    removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  10. ArmDaniel commented on Jun 19, 2026

    @ArmDaniel
    ArmDaniel
    on Jun 19, 2026
    More actions

    trying to push this to have visibility; same error happening on goose right now

  11. github-actions commented on Aug 19, 2026

    @github-actions
    github-actionsBot
    on Aug 19, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  12. github-actions
    closed this as not plannedon Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.