Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Retrieving Streamed Output from Any Model Node in Dify's Workflow API #12009

Open
5 tasks done
EmiyaredA opened this issue Dec 23, 2024 · 0 comments
Open
5 tasks done
Labels
💪 enhancement New feature or request
Milestone

Comments

@EmiyaredA
Copy link

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I would like to suggest that Dify's workflow API support retrieving the streamed output of any model node in the workflow during execution in streaming mode.
Currently, the only way to get the streamed output of a specific model is to add the model node's output variable to the final end node of the workflow.
The reason I’m raising this issue is that, in one of my use cases, I was using conditional nodes to split the workflow into different branches. Each branch called a model, and eventually, all outputs were merged at an aggregation node. In this situation, it became very difficult to access the streamed output of each model node in real time.

2. Additional context or comments

Having the ability to directly retrieve the streamed output from any model node would make the workflow API more flexible and easier to use in cases involving conditional branches or aggregation of multiple streams. This would save developers from needing to add extra steps or workarounds just to collect streamed outputs.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Dec 23, 2024
@crazywoola crazywoola added this to the 1.0 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants