In Agent mode, using Xinference's model does not support streaming output. #274

Closed
opened 2026-02-16 10:18:46 -05:00 by yindo · 2 comments
Owner

Originally created by @suntao2015005848 on GitHub (May 11, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Xinference version is 1.5.1;
Xinference plugins is 0.0.3;
In Chatflow mode, using Xinference's model works normally,but In Agent mode, using Xinference's model does not support streaming output.

✔️ Expected Behavior

Image

Actual Behavior

Image

Originally created by @suntao2015005848 on GitHub (May 11, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Xinference version is 1.5.1; Xinference plugins is 0.0.3; In Chatflow mode, using Xinference's model works normally,but In Agent mode, using Xinference's model does not support streaming output. ### ✔️ Expected Behavior ![Image](https://github.com/user-attachments/assets/df447d7c-09cf-4f35-81a1-82520cbde3fc) ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/bee215a1-91f4-4527-9cb6-f411f449d68b)
yindo closed this issue 2026-02-16 10:18:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 11, 2025):

The issue you're experiencing with Xinference's model not supporting streaming output in Agent mode is a known limitation. Currently, agent nodes using the plug-in policy do not support streaming output, while it works normally in Chatflow mode. This is due to the way requests involving tools are handled, as streaming mode is explicitly not supported in these cases. This functionality is planned to be added in a future version of Dify through the 'stream-tool-call' feature [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 11, 2025): <!-- Answer --> The issue you're experiencing with Xinference's model not supporting streaming output in Agent mode is a known limitation. Currently, agent nodes using the plug-in policy do not support streaming output, while it works normally in Chatflow mode. This is due to the way requests involving tools are handled, as streaming mode is explicitly not supported in these cases. This functionality is planned to be added in a future version of Dify through the 'stream-tool-call' feature <sup>[[1]](https://github.com/langgenius/dify/issues/17615)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5e861413-e822-4b65-a4ac-c5b8d4586da6?feedback_type=other)</sup>
Author
Owner

@suntao2015005848 commented on GitHub (May 18, 2025):

Why does the Tongyi plugin support it, while Xinference does not? @dosu

@suntao2015005848 commented on GitHub (May 18, 2025): Why does the Tongyi plugin support it, while Xinference does not? @dosu
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#274