Skip to content

Commit 8805361

Browse files
committed
fix: fine-tune the prompt to eliminate unnecessary symbols in the translation result
1 parent 7625a4d commit 8805361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ function translate(query, completion) {
1414
};
1515
let prompt = `translate from ${lang.langMap.get(query.detectFrom) || query.detectFrom
1616
} to ${lang.langMap.get(query.detectTo) || query.detectTo}:\n\n"${query.text
17-
}"=>`;
17+
}" =>`;
1818
if (query.detectTo === "wyw" || query.detectTo === "yue") {
1919
prompt = `请翻译成${lang.langMap.get(query.detectTo) || query.detectTo
20-
}:\n\n"${query.text}"=>`;
20+
}:\n\n"${query.text}" =>`;
2121
}
2222
if (
2323
query.detectFrom === "wyw" ||

0 commit comments

Comments
 (0)