mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-13 04:12:00 +10:00
changed translation prompt back to specific input.
This commit is contained in:
@@ -454,7 +454,7 @@ class TranslationService extends ChangeNotifier {
|
|||||||
final targetLabel = _languageLabel(targetLanguageCode);
|
final targetLabel = _languageLabel(targetLanguageCode);
|
||||||
final instruction = targetLanguageCode == 'zh'
|
final instruction = targetLanguageCode == 'zh'
|
||||||
? '将以下文本翻译为中文,注意只需要输出翻译后的结果,不要额外解释:\n\n$text'
|
? '将以下文本翻译为中文,注意只需要输出翻译后的结果,不要额外解释:\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 {
|
try {
|
||||||
return await _runExclusive(() async {
|
return await _runExclusive(() async {
|
||||||
final engine = await _ensureContext(model.localPath);
|
final engine = await _ensureContext(model.localPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user