changed translation prompt back to specific input.

This commit is contained in:
ericz
2026-05-11 07:15:39 +02:00
parent d2a6fbe182
commit 1f6b2dacf9
+1 -1
View File
@@ -454,7 +454,7 @@ class TranslationService extends ChangeNotifier {
final targetLabel = _languageLabel(targetLanguageCode);
final instruction = targetLanguageCode == 'zh'
? '将以下文本翻译为中文,注意只需要输出翻译后的结果,不要额外解释:\n\n$text'
: 'Translate the following segment into $targetLabel, without additional explanation. If it is already in $targetLabel, then return the exact same String.\n\n$text';
: 'Translate the following segment into $targetLabel, without additional explanation.\n\n$text';
try {
return await _runExclusive(() async {
final engine = await _ensureContext(model.localPath);