mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
The Function Calling Agent persists in using non-streaming requests despite OpenAI-API-compatible models supporting streaming function calls. #164
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 @ExenVitor on GitHub (Apr 2, 2025).
Self Checks
Dify version
v1.1.3
Plugin version
agent=0.0.12 openai_api_compatible=0.0.11
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Steps to Reproduce:
In the

openai_api_compatibleplugin, add a model with the "Stream function calling" option enabledConfigure an agent node using the Function Calling Agent
Observe the
streamparameter remainsFalsein all agent requestsDebug Findings:
The
fc_params.model.entitypersistently returnsNone, which appears to be the root cause. Could this suggest a potential issue in the openai_api_compatible plugin's implementation?https://github.com/langgenius/dify-official-plugins/blob/0bcb980f6d3f82901a58f874700423937b185945/agent-strategies/cot_agent/strategies/function_calling.py#L68C7-L73C10

✔️ Error log
No response
@leslie2046 commented on GitHub (Apr 2, 2025):
@ExenVitor How do you host your QwQ-32B-AWQ? ollma or vLLM?
@ExenVitor commented on GitHub (Apr 2, 2025):
sglang with tool-call-parser and reasoning-parser enabled
@leslie2046 commented on GitHub (Apr 2, 2025):
openai_api_compatible.zip
Can you uncompress it and install it ,and test it ?
@ExenVitor commented on GitHub (Apr 2, 2025):
The new version alse doesn't work.
@ExenVitor commented on GitHub (Apr 3, 2025):
There might be something wrong in this code segment
https://github.com/langgenius/dify/blob/12faecdf895f058b15f0cb4536e9df7686f336c4/api/core/workflow/nodes/agent/agent_node.py#L234C1-L245C101
@dosubot[bot] commented on GitHub (Aug 18, 2025):
Hi, @ExenVitor. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
fc_params.model.entityreturningNone, which disables thestreamparameter.agent_node.pythat might be responsible.Next Steps:
Thank you for your understanding and contribution!
@martinzh717 commented on GitHub (Dec 9, 2025):
This Agent needs to be optimized. It's currently returning responses in a non-streaming manner, which causes too many issues. It's likely we'll need to plan a transition to Coze Studio later