This commit is contained in:
NAME
2026-05-21 05:27:30 +00:00
parent fe22461a07
commit e107464716
2 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ async function handleTranslate({ text, target_lang }, tabId) {
'Content-Type': 'application/json',
'Authorization': `Bearer ${key}`
},
body: JSON.stringify({ text, target_lang })
body: JSON.stringify({ text, target_lang, target_model })
});
const data = await res.json();
if (!res.ok) throw new Error(`HTTP ${res.status}`);