Auto-deploy: 2026-05-18 03:06:29
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user