Auto-deploy: 2026-05-17 23:35:30

This commit is contained in:
Hamza-Ayed
2026-05-17 23:35:30 +03:00
parent 9bf1406796
commit 98c890ef16
3 changed files with 10 additions and 8 deletions

View File

@@ -1028,7 +1028,11 @@ Brief honest assessment of this opportunity for my profile`
document.querySelectorAll('.lja-badge').forEach(b => b.remove());
const listDataStr = JSON.stringify(jobsToScan.map(j => ({ index: j.index, title: j.title, company: j.company })));
if (jobsToScan.length === 0) return;
// Limit to 25 jobs per scan to prevent AI token truncation
const jobsToProcess = jobsToScan.slice(0, 25);
const listDataStr = JSON.stringify(jobsToProcess.map(j => ({ index: j.index, title: j.title, company: j.company })));
const settings = await getSettings();
if (!settings.apiKey) {
@@ -1050,7 +1054,7 @@ Brief honest assessment of this opportunity for my profile`
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
contents: [{ parts: [{ text: promptStr }] }],
generationConfig: { maxOutputTokens: 2048, temperature: 0.1 }
generationConfig: { temperature: 0.1, responseMimeType: "application/json" }
})
}
);