The labels for thinking cannot be streamed normally #8752

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

Originally created by @kalsolio on GitHub (Feb 28, 2025).

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

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image
open chrome consle, api has a long wait to response

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @kalsolio on GitHub (Feb 28, 2025). ### 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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/cbabc5f9-6758-4ae4-8ed8-cb94bd0d81e5) open chrome consle, api has a long wait to response ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:27:24 -05:00
Author
Owner

@kalsolio commented on GitHub (Feb 28, 2025):

Image
No streaming return, returned all at once, time displayed as 0

@kalsolio commented on GitHub (Feb 28, 2025): ![Image](https://github.com/user-attachments/assets/35d69adf-b5af-4d37-a266-0bc4e180eac3) No streaming return, returned all at once, time displayed as 0
Author
Owner

@dosubot[bot] commented on GitHub (Feb 28, 2025):

I found relevant information regarding the issue you're experiencing with the "Thought" process feature in Dify. The 'Thought' process interacts with the streaming API by wrapping thinking content with <think> tags in the message stream. The issue of displaying a processing time of 0.0 seconds occurs because the stream message of the old conversation doesn't persist when starting a new conversation. Instead, it displays messages from the JSON API. This behavior has been identified and fixed locally by a developer and will be included in the next version release [1].

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

@dosubot[bot] commented on GitHub (Feb 28, 2025): <!-- Answer --> I found relevant information regarding the issue you're experiencing with the "Thought" process feature in Dify. The 'Thought' process interacts with the streaming API by wrapping thinking content with `<think>` tags in the message stream. The issue of displaying a processing time of 0.0 seconds occurs because the stream message of the old conversation doesn't persist when starting a new conversation. Instead, it displays messages from the JSON API. This behavior has been identified and fixed locally by a developer and will be included in the next version release <sup>[[1]](https://github.com/langgenius/dify/issues/13521)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/36ff07ad-5f42-4b7a-9518-72b216418531?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8752