'Suggested-question' doesn't respond with Chinese while chatting with Chinese #5979

Closed
opened 2026-02-21 18:13:29 -05:00 by yindo · 5 comments
Owner

Originally created by @wy96f on GitHub (Oct 9, 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

0.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Create a simple LLM chatbot with Chatflow
Enable follow-ups
Publish the app
Chat with Chinese and see the suggested questions

✔️ Expected Behavior

"In Chinese conversations, 'Suggested-question' always gives answers in Chinese."

Actual Behavior

"In Chinese conversations, 'Suggested-question' rarely gives answers in Chinese."

Originally created by @wy96f on GitHub (Oct 9, 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 0.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Create a simple LLM chatbot with Chatflow Enable follow-ups Publish the app Chat with Chinese and see the suggested questions ### ✔️ Expected Behavior "In Chinese conversations, 'Suggested-question' always gives answers in Chinese." ### ❌ Actual Behavior "In Chinese conversations, 'Suggested-question' rarely gives answers in Chinese."
yindo added the 🐞 bug label 2026-02-21 18:13:29 -05:00
yindo closed this issue 2026-02-21 18:13:29 -05:00
Author
Owner

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

@wy96f Hello there! I'm here to help you with bug reports, questions, and becoming a contributor. Let's solve this issue together!

I found some relevant discussions and an issue related to your problem:

  1. How to set the next question into Chinese? - This discussion addresses similar concerns about language settings for suggested questions [1].

  2. The “suggested” interface defaults to returning questions in English. - Another discussion on the default language for suggested questions [2].

  3. An issue titled next suggest question need support chinese was closed after a pull request fixed the logic problem, ensuring the output matches the language of the Assistant's latest response [3].

The logic for determining the language of 'Suggested-question' responses is to match the language of the Assistant's latest response [4]. If you're still experiencing issues, it might be worth checking if your setup aligns with the latest updates or if there are any configuration settings that need adjustment.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 9, 2024): <!-- Greeting --> @wy96f Hello there! I'm here to help you with bug reports, questions, and becoming a contributor. Let's solve this issue together! <!-- Answer --> I found some relevant discussions and an issue related to your problem: 1. [How to set the next question into Chinese?](https://github.com/langgenius/dify/discussions/5944) - This discussion addresses similar concerns about language settings for suggested questions <sup>[[1]](https://github.com/langgenius/dify/discussions/5944)</sup>. 2. [The “suggested” interface defaults to returning questions in English.](https://github.com/langgenius/dify/discussions/4774) - Another discussion on the default language for suggested questions <sup>[[2]](https://github.com/langgenius/dify/discussions/4774)</sup>. 3. An issue titled [next suggest question need support chinese](https://github.com/langgenius/dify/issues/6231) was closed after a pull request fixed the logic problem, ensuring the output matches the language of the Assistant's latest response <sup>[[3]](https://github.com/langgenius/dify/issues/6231)</sup>. The logic for determining the language of 'Suggested-question' responses is to match the language of the Assistant's latest response <sup>[[4]](https://github.com/langgenius/dify/blob/main/api/core/llm_generator/prompts.py)</sup>. If you're still experiencing issues, it might be worth checking if your setup aligns with the latest updates or if there are any configuration settings that need adjustment. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@wy96f commented on GitHub (Oct 9, 2024):

image
It seems that the modification of this prompt has affected the language of the output.

@wy96f commented on GitHub (Oct 9, 2024): ![image](https://github.com/user-attachments/assets/8f8c6ccf-748d-483f-b0fe-2992007a2f73) It seems that the modification of this prompt has affected the language of the output.
Author
Owner

@crazywoola commented on GitHub (Oct 9, 2024):

Duplicated

@crazywoola commented on GitHub (Oct 9, 2024): Duplicated
Author
Owner

@wy96f commented on GitHub (Oct 9, 2024):

Duplicated
@crazywoolala Will the next release, such as version 0.9.2, include fixes?

@wy96f commented on GitHub (Oct 9, 2024): > Duplicated @crazywoolala Will the next release, such as version 0.9.2, include fixes?
Author
Owner

@internet5 commented on GitHub (Oct 13, 2024):

this problem is still here

@internet5 commented on GitHub (Oct 13, 2024): this problem is still here
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5979