You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -64,7 +62,7 @@ async function callLlm(prompt: string): Promise<string> {
64
62
{
65
63
role: "system",
66
64
content:
67
-
"You are a Chinese-to-Vietnamese translator. You MUST output ONLY Vietnamese text. Never output Chinese.",
65
+
"You are a professional translator to Vietnamese. You MUST output ONLY Vietnamese text. Never output Chinese or English (except proper nouns, URLs, code).",
68
66
},
69
67
{role: "user",content: prompt},
70
68
],
@@ -90,7 +88,8 @@ async function callLlm(prompt: string): Promise<string> {
90
88
}
91
89
92
90
functionbuildPrompt(markdown: string): string{
93
-
return`You are a professional translator. Translate the following Markdown document from Chinese to Vietnamese.
91
+
return`Translate the following Markdown document to Vietnamese.
92
+
The source may be in Chinese or English — detect automatically and translate to Vietnamese.
0 commit comments