langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
52.6k stars 7.69k forks source link

streaming stop error during streaming chat #9313

Open Freschello2019 opened 1 month ago

Freschello2019 commented 1 month ago

Self Checks

Dify version

0.8.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have a agent thought running, and i wanna stop it immediately. I have sent stop post to Dify http server. I didn't received succeeded response. and http disconnect from Dify http server.

截屏2024-10-14 14 26 41

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 1 month ago

@Freschello2019 Hello there! I'm here to help you with bugs, questions, and becoming a contributor. Let me know how I can assist you while you wait for a human maintainer.

I found a similar discussion regarding a streaming stop error in Dify. You might want to check out this discussion which is still open and might provide some insights [1].

The streaming stop error in version 0.8.2 could be related to the handling of QueueStopEvent in the _process_stream_response method. Issues in the _handle_stop method or output moderation logic might cause unexpected stop events. Ensure the response_mode is set correctly and check the SSE configuration for any misconfigurations [2][3].

To continue talking to Dosu, mention @dosu.