Skip to content

Deepseek V4 调用错误 API Error: 400 和 reasoning_content有关 #3619

@master-genius

Description

@master-genius

What happened?

qwen-code version: 0.15.2

使用DeepSeek V4模型出现以下错误:
[API Error: 400 The reasoning_content in the thinking mode must be passed back to the API.]

似乎是因为工具调用思维链没有传递或没有支持API的reasoning_content导致。

What did you expect to happen?

应该是正常处理任务。

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

$ qwen /about
  |状态                                                                                             │
  │                                                                                                  │
  │ Qwen Code                         0.15.2 (44b482928)                                             │
  │ 运行环境                          Node.js v25.9.0 / npm 11.12.1                                  │
  │ 操作系统                          linux x64 (6.12.74+deb13+1-amd64)                              │
  │                                                                                                  │
  │ 认证                              API Key - openai                                               │
  │ 基础 URL                          https://api.deepseek.com                                       │
  │ 模型                              deepseek-v4-pro                                                │
  │ 快速模型                          deepseek-v4-pro                                                │
  │ 会话 ID                           85c653ee-356d-4d8e-91ea-f43c2ac9121f                           │
  │ 沙箱                              no sandbox                                                     │
  │ 代理                              no proxy                                                       │
  │ 内存使用                          859.2 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

type/bugSomething isn't working as expected

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions