mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
zhipuai tool calls error #701
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 @952446418 on GitHub (Oct 10, 2025).
Self Checks
Dify version
1.7.2
Plugin version
zai-sdk>=0.0.3.1、pydantic==2.8.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Oct 10, 2025):
Hi @952446418! I'm Dosu and I’m helping the dify-official-plugins team.
The issue with ZhipuAI tool-call chunks being skipped during streaming in Dify v1.7.2 is caused by filtering logic that ignores chunks with empty content and reasoning, even if they contain tool_calls. This prevents the agent from executing the requested tool.
A recent update after v1.7.2 refactored the chunk merging logic and may resolve this problem by ensuring all relevant streaming chunks, including tool-call metadata, are processed correctly. If possible, consider updating to a version that includes or is newer than this merged PR from August 2025, which unifies and improves streaming chunk handling. If you need an immediate workaround, review your backend's chunk filtering logic and ensure it does not skip chunks solely based on empty content/reasoning—allow chunks with tool_calls to pass through.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
