Auto-deploy: 2026-06-02 16:37:46

This commit is contained in:
Hamza-Ayed
2026-06-02 16:37:46 +03:00
parent dad9cba7db
commit e153327bba
6 changed files with 433 additions and 12 deletions

View File

@@ -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
})
});