CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

Language has been configured to Chinese, but "thinking" outputs are still in English

Open ljlbit opened this issue 6 months ago • 9 comments

Problem

Language has been configured to Chinese, but "thinking" outputs are still in English. Example is as bellow:

Image

Proposed solution

Alternatives considered

Additional context

ljlbit avatar May 08 '26 02:05 ljlbit

thank you so much - will work on editing the prompt file to make this correct!

I've experienced the opposite, so I know how strange and unsettling it is!!

Hmbown avatar May 08 '26 03:05 Hmbown

thank you so much - will work on editing the prompt file to make this correct!

I've experienced the opposite, so I know how strange and unsettling it is!!

I have the opposite view on the proposal English can reduce token consumption Configuring a local translation model seems to be a better option Dsv4 seems to be more inclined to use English thought chains than v3 and r1 There's nothing wrong with that in programming. 我对该提议持相反观点 英语更能减少token消耗 配置本地翻译模型似乎是更好的选择 dsv4相较于v3andr1似乎更偏向与使用英语思维链 这在编程中没什么不好的

Currently, in use, the model can naturally use the English thought chain to think and interact with users in Chinese. There is nothing wrong with that 目前在使用中 模型已经能很自然的使用英语思维链思考 并用中文与用户交互 这没什么不对的

pmsleepcheck avatar May 08 '26 05:05 pmsleepcheck

thank you so much - will work on editing the prompt file to make this correct!非常感谢——我会努力编辑提示文件,让它更正确! I've experienced the opposite, so I know how strange and unsettling it is!!我经历过相反的情况,所以我知道这有多奇怪和令人不安!!

I have the opposite view on the proposal我对这个提议持相反的看法 English can reduce token consumption英语可以减少代币消耗 Configuring a local translation model seems to be a better option配置本地翻译模型似乎是更好的选择 Dsv4 seems to be more inclined to use English thought chains than v3 and r1《黑暗之魂4》似乎更倾向于使用英文思维链,而非第三版和第一版 There's nothing wrong with that in programming.编程中这没什么问题。 我对该提议持相反观点 英语更能减少token消耗 配置本地翻译模型似乎是更好的选择 dsv4相较于v3andr1似乎更偏向与使用英语思维链 这在编程中没什么不好的

Currently, in use, the model can naturally use the English thought chain to think and interact with users in Chinese. There is nothing wrong with that目前,模型可以自然地利用英语思维链来思考和与中文用户互动。这没什么问题 目前在使用中 模型已经能很自然的使用英语思维链思考 并用中文与用户交互 这没什么不对的

I agree. There is no problem with using English to showcase the thinking process, and using the language chosen by the user, such as Chinese, is sufficient for outputting the results to the user.

masterkkkkkong avatar May 08 '26 05:05 masterkkkkkong

@Hmbown 或许做i18n的时候将提示词模板也纳入进去能解决这个问题?

crates/tui/src/prompts/base.md
crates/tui/src/prompts/base.zh_CN.md
...

lloydzhou avatar May 08 '26 06:05 lloydzhou

We can use propmts like "please use Chinese when printing in thinking" like this: Image

then it will use Chinese in the later thinking: Image

It is the same with "trae sole MTC":

Image

Maybe it is the perference of LLM to print thinking in english. Any method letting LLM remember it forever?

ljlbit avatar May 08 '26 07:05 ljlbit

Is "Default System Prompt" a good idea?

ljlbit avatar May 08 '26 07:05 ljlbit

Default System Prompt like "Ans:EN, Reason:ZH."

ljlbit avatar May 08 '26 07:05 ljlbit

这个问题已经解决了,更新到0.8.32的版本即可,官方接受了我的pr。开启翻译模式即可。这样就可以英文思考,中文显示,不影响思考语料的污染,仅仅是显示的时候,展示目标语言即可。

YaYII avatar May 12 '26 23:05 YaYII

Closing during v0.8.59 milestone hygiene: this class was addressed after v0.8.32 via translation/prompt-language handling, and current code carries tests/comments for the #1118 behavior. Please reopen as a fresh current-release repro if needed.

Hmbown avatar Jun 12 '26 18:06 Hmbown