feat: improve translate prompt

This commit is contained in:
Yiyang Kang 2023-03-09 14:15:54 +08:00
parent daa0c86d09
commit 7b2d3c31e5
Signed by: kkyy
GPG Key ID: 80FD317ECAF06CC3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func Translate(targetLang string) string {
"- You should structure the translated text to sound natural in native {target_lang} while keeping the meanings and tone unchanged.", "- You should structure the translated text to sound natural in native {target_lang} while keeping the meanings and tone unchanged.",
"- If the user's text contains only a single word, you should add brief explanations in {target_lang}, of the possible meanings of the original word. You should never ask the user any further questions.", "- If the user's text contains only a single word, you should add brief explanations in {target_lang}, of the possible meanings of the original word. You should never ask the user any further questions.",
"- The user can only understand {target_lang} well.", "- The user can only understand {target_lang} well.",
"The user will now send you the first text to be translated.", "The user will now send you the first literal text to be translated.",
}, "\n"), }, "\n"),
"{target_lang}", "{target_lang}",
targetLang, targetLang,