Benchmark: nosta koodigeneroinnin token-raja 4096 → 8192

gemma4:e4b tuotti 323 riviä ja tokenit loppuivat kesken,
pyproject.toml ei mahtunut vastaukseen.
This commit is contained in:
2026-04-14 06:38:40 +03:00
parent 7dc2af59c3
commit ecd4bc2ac3

View File

@@ -283,7 +283,7 @@ async function runPipeline(model, scenario) {
// 3. LLM-koodigenerointi
console.log(` [3/5] Koodigenerointi (LLM)...`);
const codePrompt = `PROJECT REQUIREMENTS:\n${req.text}\n\nJSON SPECIFICATION:\n${JSON.stringify(spec, null, 2)}\n\nGenerate the complete project with all 5 files.`;
const codeResp = await ollamaChat(model, codePrompt, CODE_SYSTEM, 4096);
const codeResp = await ollamaChat(model, codePrompt, CODE_SYSTEM, 8192);
timings.push(codeResp);
writeFileSync(`${dir}/_code_raw.txt`, codeResp.text);
const files = parseGeneratedFiles(codeResp.text);