fix: AI language code

This commit is contained in:
Gabe
2025-11-05 01:03:44 +08:00
parent a56fb6c8d6
commit 629bf9461a
3 changed files with 19 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ async (args) => {
{
role: "user",
content: JSON.stringify({
targetLanguage: args.to,
targetLanguage: args.toLang,
segments: args.texts.map((text, id) => ({ id, text })),
glossary: {},
}),
@@ -132,7 +132,7 @@ async (args) => {
{
role: "user",
content: JSON.stringify({
targetLanguage: args.to,
targetLanguage: args.toLang,
segments: args.texts.map((text, id) => ({ id, text })),
glossary: {},
}),