unusual newline when generating text from llm #6172

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

Originally created by @Modas-Li on GitHub (Oct 20, 2024).

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

V0.8,2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

most times happen, change llm models, but still happen
llms i tried are qwen-max, qwen-max-longcontext and so on
image

✔️ Expected Behavior

help find why and fix it

Actual Behavior

help find why and fix it

Originally created by @Modas-Li on GitHub (Oct 20, 2024). ### 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 V0.8,2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce most times happen, change llm models, but still happen llms i tried are qwen-max, qwen-max-longcontext and so on ![image](https://github.com/user-attachments/assets/1b71db32-0d1f-4c5f-b949-3aac05d61efb) ### ✔️ Expected Behavior help find why and fix it ### ❌ Actual Behavior help find why and fix it
yindo added the 🐞 bug label 2026-02-21 18:14:22 -05:00
yindo closed this issue 2026-02-21 18:14:22 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 20, 2024):

I found two similar discussions that might be related to your issue with unusual newlines when generating text from LLMs:

  1. The frontend cannot show the generated text by llm - This discussion is still open and might provide insights into frontend display issues with generated text.

  2. ChatBot generate nonsense - This discussion is also open and discusses issues with the quality of generated text.

These discussions might help you identify if the newline issue is related to how the text is being processed or displayed. You might want to check these threads for any solutions or workarounds that have been suggested.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 20, 2024): <!-- Answer --> I found two similar discussions that might be related to your issue with unusual newlines when generating text from LLMs: 1. [The frontend cannot show the generated text by llm](https://github.com/langgenius/dify/discussions/4081) - This discussion is still open and might provide insights into frontend display issues with generated text. 2. [ChatBot generate nonsense](https://github.com/langgenius/dify/discussions/5354) - This discussion is also open and discusses issues with the quality of generated text. These discussions might help you identify if the newline issue is related to how the text is being processed or displayed. You might want to check these threads for any solutions or workarounds that have been suggested. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@Modas-Li commented on GitHub (Oct 30, 2024):

llm issue, not dify

@Modas-Li commented on GitHub (Oct 30, 2024): llm issue, not dify
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6172