Skip to content

[BUG] Tool calls with DeepSeek V3.2 thinking mode return 400 Bad Request due to missing reasoning_content #4857

@weiyx7

Description

@weiyx7

Environment

🪟 Windows

System

windows 10

Version

SillyTavern 1.14.0 'release' (765c76e)

Desktop Information

No response

Describe the problem

When using DeepSeek V3.2 in thinking mode for tool calls in SillyTavern, Streaming request failed with status 400 Bad Request after the tool call is executed.

Image

The docs(https://api-docs.deepseek.com/guides/thinking_mode#tool-calls) mentions:

"Compatibility Notice
Since the tool invocation process in thinking mode requires users to pass back reasoning_content to the API, if your code does not correctly pass back reasoning_content, the API will return a 400 error. Please refer to the sample code below for the correct way."

Additional info

No response

Please tick the boxes

  • I have explained the issue clearly, and I included all relevant info
  • I have checked that this issue hasn't already been raised
  • I have checked the docs important
  • I confirm that my issue is not related to third-party content, unofficial extension or patch. If in doubt, check with a new user account and with extensions disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Bug[ISSUE] Ticket describing something that isn't working🪟 Windows[ISSUE] The Environment is on Windows

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions