Skip to content

Commit 6a9727e

Browse files
committed
fix: distinguish between Simplified Chinese and Traditional Chinese
1 parent 40beced commit 6a9727e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function translate(query, completion) {
2323
};
2424
const body = {
2525
model: $option.model,
26-
prompt: `translate to ${langMap.get(query.detectTo)}:${query.text}`,
26+
prompt: `translate to ${query.detectTo}:${query.text}`,
2727
temperature: 0,
2828
max_tokens: 4000,
2929
top_p: 1,

0 commit comments

Comments
 (0)