Update
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user