Auto-deploy: 2026-06-02 16:37:46
This commit is contained in:
@@ -17,7 +17,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
|
||||
// ─── Core API call ───────────────────────────────────────────────────────────
|
||||
|
||||
async function handleGeminiRequest({ apiKey, prompt, tab, action = 'generateText', jobDescription = '', jobTitle = '', postText = '' }) {
|
||||
async function handleGeminiRequest({ apiKey, prompt, tab, action = 'generateText', jobDescription = '', jobTitle = '', postText = '', template = 'default' }) {
|
||||
// Rate limit check
|
||||
const canProceed = await checkRateLimit();
|
||||
if (!canProceed) {
|
||||
@@ -47,7 +47,8 @@ async function handleGeminiRequest({ apiKey, prompt, tab, action = 'generateText
|
||||
prompt: trimmedPrompt,
|
||||
jobDescription: jobDescription,
|
||||
jobTitle: jobTitle,
|
||||
postText: postText
|
||||
postText: postText,
|
||||
template: template
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user