mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Errors caused by parallel tool calls #912
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leslie2046 on GitHub (Dec 30, 2025).
Self Checks
Dify version
1.11.2
Plugin version
0.0.28
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Error log
@dosubot[bot] commented on GitHub (Dec 30, 2025):
This error happens because the deepseek-reasoner API requires a reasoning_content field in each assistant message, but Dify's current tool call handling does not include this field when constructing messages for tool calls—especially when multiple tools are called in one round. The FunctionCallingAgentStrategy builds assistant messages with content and tool_calls, but never sets reasoning_content, which leads to the 400 error you see when using deepseek-reasoner with parallel tool calls. This is a model-specific requirement and is not yet handled in Dify's agent code for deepseek-reasoner or in the official plugins. There are no merged fixes or workarounds for this in recent PRs or issues. To resolve this, Dify would need to be updated to include reasoning_content in assistant messages for deepseek-reasoner tool calls, following the API's expectations as described in their documentation.
Reference: FunctionCallingAgentStrategy implementation
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other