Auto-deploy: 2026-05-18 00:00:24

This commit is contained in:
Hamza-Ayed
2026-05-18 00:00:24 +03:00
parent 98c890ef16
commit 1b930f92be
2 changed files with 8 additions and 2 deletions

View File

@@ -1054,12 +1054,16 @@ Brief honest assessment of this opportunity for my profile`
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
contents: [{ parts: [{ text: promptStr }] }],
generationConfig: { temperature: 0.1, responseMimeType: "application/json" }
generationConfig: { maxOutputTokens: 8192, temperature: 0.1 }
})
}
);
if (!response.ok) throw new Error('API Request failed');
if (!response.ok) {
const errData = await response.json().catch(() => ({}));
console.error('[LJA] API Error:', errData);
throw new Error('API Error: ' + (errData?.error?.message || response.status));
}
const data = await response.json();
if (!data.candidates || !data.candidates[0].content) {
throw new Error('API blocked or returned empty response.');