-
Notifications
You must be signed in to change notification settings - Fork 12k
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
LLM node can not produce stream response in workflow mode when IF-ELSE nested IF-ELSE #15162
Comments
@yunzhuqing Hello! I'm here to help you with your reported issue. If you need assistance with bug resolution, have questions, or want to become a contributor, I'm the bot to talk to. The issue you're encountering seems to be related to how the To address this, you might want to investigate the logic within 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 |
`
`
before run into _fetch_node_ids_in_reachable_branch, same condition has checked i try to comment this segemnt, ELSE branch will work and produce stream response |
I think this should be fixed in 1.0.0 |
here is my workflow yaml, maybe can help reporduce it, i try import it into https://cloud.dify.ai, i does not work yet Can you fix it on 0.15.x, 1.x now has so many bugs
` |
I could get the stream output successfully. ![]() |
you should define two branch as below second branch only product one text stream |
#14065 I understand now. There was a missing edge when exporting the DSL. You can try this PR, which has fixed this issue. |
i try it , but it also does not work |
It seems there's missing code in the previous if block. You can copy and replace the entire file directly. |
i copied it, but the bug alse exists, it seems they are two different questions |
Uhh, this is indeed another issue. I misunderstood your meaning. I'll fix it as soon as possible. |
same to me. |
Self Checks
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Workflow was defined as below:

TRUE branch will produce stream response,however, ELSE branch will block until all nodes has been executed
TRUE branch outputs is
ELSE branch outputs
The problem code maybe _fetch_node_ids_in_reachable_branch in StreamProcessor
for ELSE branch, the condition is always true, the nodes after 'IF-ELSE 2' can not be append reachable_node_ids,
these nodes will be deleted, this results stream_out_end_node_ids is always None
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: