mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[Tongyi] Tool calls missing in non-streaming response #956
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 @Nov1c444 on GitHub (Jan 28, 2026).
Originally assigned to: @Nov1c444 on GitHub.
Self Checks
Dify version
1.11.4
Plugin version
0.1.21
Cloud or Self Hosted
Self Hosted (Source)
Description
In non-streaming mode, AssistantPromptMessage does not include tool_calls from the API response, causing tool call information to be lost.
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Jan 28, 2026):
This is a confirmed bug in Dify 1.11.4: in non-streaming mode,
AssistantPromptMessagecan omittool_calls, causing tool call info to be lost. The root cause was incorrect initialization and logic in the backend, so the UI never receives tool_calls in non-streaming responses. This has been fixed in Dify after PR #30083 (merged January 2026), which ensuresAssistantPromptMessageis properly initialized with both content and tool_calls if present.To resolve the issue, upgrade to a Dify version that includes this PR. For Tongyi/Qwen models and agent workflows, related plugin improvements are in dify-official-plugins PRs #2298 and #2307, which improve extraction of reasoning content and tool_calls.
If you can't upgrade right away, possible workarounds include patching output handling logic to append new content instead of using string replace, ensuring JSON arguments are well-formed, and avoiding parallel tool calls unless your plugin version is updated to a fixed release. The web UI depends on the backend to persist tool_calls in non-streaming mode, so backend fixes are essential for correct display.
Let me know if you need more details on patching or upgrade steps.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other