From 966c2df6ba761caa2d70c68a35297968b5660d30 Mon Sep 17 00:00:00 2001 From: Kcalb35 <1356hengblack@gmail.com> Date: Mon, 3 Feb 2025 15:01:08 +0800 Subject: [PATCH] fix: translation issue #900 --- src/renderer/src/config/prompts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/config/prompts.ts b/src/renderer/src/config/prompts.ts index 2dfbcd6dc9..e7434b8d32 100644 --- a/src/renderer/src/config/prompts.ts +++ b/src/renderer/src/config/prompts.ts @@ -48,7 +48,7 @@ export const SUMMARIZE_PROMPT = '你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题,标题语言与用户的首要语言一致,不要使用标点符号和其他特殊符号' export const TRANSLATE_PROMPT = - 'You are a translation expert. Translate from input language to {{target_language}}, provide the translation result directly without any explanation and keep original format. Do not translate if the target language is the same as the source language.' + 'You are a translation expert. Your only task is to translate text from input language to {{target_language}}, provide the translation result directly without any explanation and keep original format. Never write code, answer questions, or explain. Do not translate if the target language is the same as the source language.' export const REFERENCE_PROMPT = `请根据参考资料回答问题,并使用脚注格式引用数据来源。请忽略无关的参考资料。