Chat assistant created using workflow are unable to be streamed out. #4615

Closed
opened 2026-02-21 18:07:15 -05:00 by yindo · 2 comments
Owner

Originally created by @DayoWang on GitHub (Jul 15, 2024).

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).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

A chat assistant created using workflow orchestration method makes calls to the chat-message interface in a streaming manner, but the messages are not streamed out, instead they are output all at once.

企业微信20240716-092842@2x 企业微信20240716-093223@2x

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @DayoWang on GitHub (Jul 15, 2024). ### 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] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.11 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce A chat assistant created using workflow orchestration method makes calls to the chat-message interface in a streaming manner, but the messages are not streamed out, instead they are output all at once. <img width="1304" alt="企业微信20240716-092842@2x" src="https://github.com/user-attachments/assets/a4b29d61-5e8c-40ed-b873-143971e0158b"> <img width="1236" alt="企业微信20240716-093223@2x" src="https://github.com/user-attachments/assets/f20bf656-acd7-4da6-9cfe-0ffa5be6cca1"> ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🌊 feat:workflow label 2026-02-21 18:07:15 -05:00
yindo closed this issue 2026-02-21 18:07:15 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 15, 2024):

The issue with messages not streaming out as expected in a chat assistant created using a workflow orchestration method in Dify version 0.6.11 could be due to the configuration or implementation of the streaming results feature. Here is a checklist to help you troubleshoot:

  1. Check WebAPI Endpoint: Ensure you are using the correct WebAPI endpoint (chat-messages for Chat Assistant).
  2. Verify Streaming Configuration: Confirm that the streaming option is enabled in your workflow settings.
  3. Context Management: Ensure that the context is being preserved correctly, as continuous context preservation is crucial for multi-turn conversations in Chat Assistants.

If these configurations are correct and the issue persists, you may need to review the implementation details or consult further documentation specific to workflow orchestration in Dify [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 15, 2024): <!-- Answer --> The issue with messages not streaming out as expected in a chat assistant created using a workflow orchestration method in Dify version 0.6.11 could be due to the configuration or implementation of the streaming results feature. Here is a checklist to help you troubleshoot: 1. **Check WebAPI Endpoint**: Ensure you are using the correct WebAPI endpoint (`chat-messages` for Chat Assistant). 2. **Verify Streaming Configuration**: Confirm that the streaming option is enabled in your workflow settings. 3. **Context Management**: Ensure that the context is being preserved correctly, as continuous context preservation is crucial for multi-turn conversations in Chat Assistants. If these configurations are correct and the issue persists, you may need to review the implementation details or consult further documentation specific to workflow orchestration in Dify <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/application-orchestrate/README.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@DayoWang commented on GitHub (Jul 15, 2024):

It should be a conditional branch node before the output node that caused this.

@DayoWang commented on GitHub (Jul 15, 2024): It should be a conditional branch node before the output node that caused this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4615