Auto-deploy: 2026-05-18 03:06:29

This commit is contained in:
Hamza-Ayed
2026-05-18 03:06:29 +03:00
parent 470580ba05
commit 29dac58464
4 changed files with 238 additions and 0 deletions

View File

@@ -67,6 +67,15 @@ async function handleGeminiRequest({ apiKey, prompt, tab, action = 'generateText
}
await incrementUsage();
return { comment, fromCache: false };
} else if (action === 'repurposePost') {
const result = data.result;
if (!result) {
console.error('[LJA-BG] Empty result. Full response:', JSON.stringify(data).substring(0, 300));
lastError = 'Empty result from server.';
continue;
}
await incrementUsage();
return { result, fromCache: false };
} else {
const text = data.candidates?.[0]?.content?.parts?.[0]?.text;
if (!text) {