Auto-deploy: 2026-05-18 00:00:24
This commit is contained in:
@@ -1054,12 +1054,16 @@ Brief honest assessment of this opportunity for my profile`
|
|||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
contents: [{ parts: [{ text: promptStr }] }],
|
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();
|
const data = await response.json();
|
||||||
if (!data.candidates || !data.candidates[0].content) {
|
if (!data.candidates || !data.candidates[0].content) {
|
||||||
throw new Error('API blocked or returned empty response.');
|
throw new Error('API blocked or returned empty response.');
|
||||||
|
|||||||
2
test_gemini.js
Normal file
2
test_gemini.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const settings = JSON.parse(fs.readFileSync('/Users/hamzaaleghwairyeen/.gemini/antigravity/brain/1fc80e71-ad9e-4306-9d23-0fcef50f8b3e/scratch/settings.json', 'utf8').catch ? '{}' : '{}'); // wait, I don't have his API key here...
|
||||||
Reference in New Issue
Block a user