EN language chat occur Chinese #4861

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

Originally created by @ThousandsStars on GitHub (Aug 1, 2024).

Originally assigned to: @WeepsDanky on GitHub.

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.6.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The chat history summary sometimes in Chinese, but the setting or chatlog don't have any Chinese word.

image

✔️ Expected Behavior

All the chat history in English

Actual Behavior

Some the chat history in Chinese

Originally created by @ThousandsStars on GitHub (Aug 1, 2024). Originally assigned to: @WeepsDanky on GitHub. ### 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.6.14 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce **The chat history summary sometimes in Chinese, but the setting or chatlog don't have any Chinese word.** ![image](https://github.com/user-attachments/assets/2afac09b-98e9-4383-bb44-295ea1a05b06) ### ✔️ Expected Behavior All the chat history in English ### ❌ Actual Behavior Some the chat history in Chinese
yindo added the 🐞 bugstale labels 2026-02-21 18:08:20 -05:00
yindo closed this issue 2026-02-21 18:08:20 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 1, 2024):

Hello @ThousandsStars! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're experiencing.

The issue you're experiencing with chat history summaries appearing in Chinese instead of English could be related to the language settings or the default model used for summarization. Here are a few steps to help you troubleshoot and resolve this issue:

  1. Check Language Settings:
    Ensure that the language settings are correctly configured in the web/i18n/languages.json file. This file defines the supported languages and their configurations.

  2. Review Environment Variables:
    Verify the environment variables in your .env file and ensure they are set correctly. Refer to the .env.example file for guidance on the appropriate settings.

  3. Logs and Debugging:
    Use the Logs feature in Dify to review user interactions and AI outputs. This can help identify any discrepancies in language settings or responses. Navigate to the Logs section in the left-side navigation of your application to access this feature [1].

  4. Fallback Mechanism:
    Dify uses a fallback mechanism for language settings. If the preferred language is not available, it defaults to the first supported language in the list. Ensure that the preferred language is correctly set and supported [2][3].

  5. Summarization Method:
    The summarization process uses the default model of the current workspace. Ensure that the model is configured to use English for summarization. The summary method in the Tool class handles this process [4].

By following these steps, you should be able to identify and resolve the issue with chat history summaries appearing in Chinese. If the problem persists, consider reviewing recent commits or changes in the codebase that might address language settings or chat history summaries.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 1, 2024): <!-- Greeting --> Hello @ThousandsStars! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're experiencing. <!-- Answer --> The issue you're experiencing with chat history summaries appearing in Chinese instead of English could be related to the language settings or the default model used for summarization. Here are a few steps to help you troubleshoot and resolve this issue: 1. **Check Language Settings**: Ensure that the language settings are correctly configured in the `web/i18n/languages.json` file. This file defines the supported languages and their configurations. 2. **Review Environment Variables**: Verify the environment variables in your `.env` file and ensure they are set correctly. Refer to the `.env.example` file for guidance on the appropriate settings. 3. **Logs and Debugging**: Use the Logs feature in Dify to review user interactions and AI outputs. This can help identify any discrepancies in language settings or responses. Navigate to the **Logs** section in the left-side navigation of your application to access this feature <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/guides/biao-zhu/logs.md)</sup>. 4. **Fallback Mechanism**: Dify uses a fallback mechanism for language settings. If the preferred language is not available, it defaults to the first supported language in the list. Ensure that the preferred language is correctly set and supported <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/i18n/languages.json)</sup><sup>[[3]](https://github.com/langgenius/dify/blob/main/web/i18n/language.ts)</sup>. 5. **Summarization Method**: The summarization process uses the default model of the current workspace. Ensure that the model is configured to use English for summarization. The `summary` method in the `Tool` class handles this process <sup>[[4]](https://github.com/langgenius/dify-docs/blob/main/en/guides/tools/advanced-tool-integration.md)</sup>. By following these steps, you should be able to identify and resolve the issue with chat history summaries appearing in Chinese. If the problem persists, consider reviewing recent commits or changes in the codebase that might address language settings or chat history summaries. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@WeepsDanky commented on GitHub (Aug 13, 2024):

Can you please share your chat history to help me fix this? The language of chat history summary depends on the first query you ask. The prompt specifies if there is a mix of chinese and english words in your query, it will output a chinese title.

@WeepsDanky commented on GitHub (Aug 13, 2024): Can you please share your chat history to help me fix this? The language of chat history summary depends on the first query you ask. The prompt specifies if there is a mix of chinese and english words in your query, it will output a chinese title.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4861