Skip to content

[BUG] 使用opencode Go订阅的DeepSeek模型会报错:Error: API Error: 400 {"type":"error","error":{"type":"api_error","message":"Upstream returned HTTP 400 #516

@ztkk

Description

@ztkk

问题描述

接入opencode go订阅调用报错

运行环境

  • 使用方式: 桌面端 / CLI / 其他: 桌面端
  • 操作系统: Windows / macOS / Linux: win11
  • 系统版本: 例如 Windows 11 23H2 / macOS 15.4:
  • 桌面端版本: 例如 v0.1.8(设置页 -> 关于 中可查看): v0.2.8
  • 安装来源: GitHub Release / 源码本地构建 / 其他: github
  • Bun 版本(CLI 问题填写,bun --version):
  • Node 版本(CLI 问题填写,node --version):

Provider / 模型配置

  • API 提供商: 例如 Anthropic 官方 / OpenRouter / MiniMax / Kimi / Ollama:
  • Base URL: https://opencode.ai/zen/go
  • 使用的模型: deepseek-v4-flash
  • 相关配置截图:
Image 尝试关闭了 思考模式,还是会报错 Image

复现步骤

随便问一句就报错:
Image

是否稳定复现: 是

错误信息与日志

Error: API Error: 400 {"type":"error","error":{"type":"api_error","message":"Upstream returned HTTP 400: {"error":{"message":"Error from provider (DeepSeek): The reasoning_content in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"}}

截图或录屏

补充信息


@dosubot

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions