continue icon indicating copy to clipboard operation
continue copied to clipboard

When use deepseek v3.2 as agent, throw "400 Missing `reasoning_content` field in the assistant message at message index 2"

Open Mutuduxf opened this issue 11 months ago • 1 comments

Before submitting your bug report

Relevant environment info

- OS: win11
- Continue version:1.3.24
- IDE version:VSCodium 1.106.37943
- Model: deepseek v3.2
- config:
  

  
  OR link to agent in Continue hub:

Description

In Agent node Error:Missing reasoning_content field in the assistant message it shows that is caused by a breaking change in Deepseek V3.2: the API now requires a reasoning_content field in each assistant message when using tool/function calling. Dify 1.9.0 does not include this field in the payload, so Deepseek returns a 400 error. This is a known compatibility issue—there are no merged fixes or official workarounds yet, and the community has been actively requesting support for this field and separation of reasoning content from main content, especially for streaming and TTS scenarios (https://github.com/langgenius/dify/issues/14270#issuecomment-2689489252, https://github.com/langgenius/dify/issues/12891).

To reproduce

No response

Log output


Mutuduxf avatar Dec 03 '25 13:12 Mutuduxf

Related issues:

  • #5049 - Support for Reasoning in OpenRouter and DeepSeek Providers (discusses reasoning_content field)
  • #7170 - Toolcalls is dropped when return in function renderChatMessage in Agent + deepseek-chat context
  • #8335 - Model termination on tool usage call (DeepSeek V3.2 via OpenRouter)
  • #8623 - Using DeepSeekCoder as an agent
  • #8980 - 400 Error with Gemini 3 Pro via OpenRouter when calling tools (similar 400 error pattern)

continue avatar Dec 03 '25 13:12 continue