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
51.46k stars 7.43k forks source link

对话返回内容突然中断。 #2587

Closed Jas0nxlee closed 8 months ago

Jas0nxlee commented 8 months ago

Self Checks

Dify version

0.5.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

在与模型对话时,模型返回的内容突然中断,例如: WechatIMG46

所有对话均有此问题。

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 8 months ago

🤖

嗨,@Jas0nxlee!看来我们又见面了😄 让我们看看这次能怎么帮到你。我会尽快回复你的问题的。

Jas0nxlee commented 8 months ago

继续补充截图: WechatIMG47

realcarlos commented 8 months ago

同样的问题,我用的是0.4.6

dosubot[bot] commented 8 months ago

🤖

I'm sorry, but I'm unable to view the screenshots you've provided as I can't process images. However, based on your description, it seems like you're experiencing an issue where the content returned by the Dify model interrupts during conversations.

This issue might be related to the listen_timeout value in the listen method of the ApplicationQueueManager class. In the current code, the listen_timeout is set to 600 seconds or 10 minutes. This means that the listen method will stop listening for new messages from the queue after 10 minutes. If the conversation lasts longer than this, it will be interrupted. You can find this in the api/core/application_queue_manager.py file.

Regarding the client-side exception issue, there was a similar issue reported in the past (#2541). The issue was addressed in a pull request and the fix is included in the upcoming release, which is v0.5.7. You should update to the new version once it is released to resolve the issue.

If you need an immediate workaround, the first comment in the issue provides a detailed approach to debugging the issue. It suggests checking the browser console for error messages, reviewing the code related to starting new conversations and handling historical conversations, and ensuring the application state is correctly updated.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Sources

#### About Dosu This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.
crazywoola commented 8 months ago

Close due to #1542

realcarlos commented 8 months ago

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

在与模型对话时,模型返回的内容突然中断,例如: WechatIMG46

所有对话均有此问题。

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Hi , @Jas0nxlee ,I wonder if your problem has been resolved?

trackcan commented 1 month ago

这个bug修复了吗,我在0.8.3版本上还存在

trackcan commented 1 month ago

图片