diff --git a/chrom-ext/background.js b/chrom-ext/background.js index 0684786..82c0b9a 100644 --- a/chrom-ext/background.js +++ b/chrom-ext/background.js @@ -93,7 +93,7 @@ async function handleGenerate({ text, lang, tone, angle }, tabId) { } // ===== GỌI API DỊCH ===== -async function handleTranslate({ text, target_lang }, tabId) { +async function handleTranslate({ text, target_lang, target_model }, tabId) { const cfg = await chrome.storage.local.get(['apiUrl','apiKey','translateUrl','translateKey']); const url = cfg.translateUrl || cfg.apiUrl; const key = cfg.translateKey || cfg.apiKey; diff --git a/chrom-ext/content.js b/chrom-ext/content.js index 152cb4f..de97f02 100644 --- a/chrom-ext/content.js +++ b/chrom-ext/content.js @@ -320,11 +320,12 @@ - - - - - +