From 3ce843a4179ab87ce5ea022ae77c9eaf6330003d Mon Sep 17 00:00:00 2001 From: keligrubb Date: Sat, 30 Aug 2025 02:01:15 -0400 Subject: [PATCH] use lighter model --- dungeonGenerator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeonGenerator.js b/dungeonGenerator.js index b3b192a..a89c1a9 100644 --- a/dungeonGenerator.js +++ b/dungeonGenerator.js @@ -5,7 +5,7 @@ async function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } -async function callOllama(prompt, model = "gemma3:4b", retries = 6) { +async function callOllama(prompt, model = "gemma3n:e4b", retries = 6) { for (let attempt = 1; attempt <= retries; attempt++) { try { const response = await fetch(OLLAMA_API_URL, { @@ -112,7 +112,7 @@ ${refined} for (let attempt = 1; attempt <= maxJsonRetries; attempt++) { try { console.log(`📦 JSON pass (attempt ${attempt}/${maxJsonRetries})...`); - jsonText = await callOllama(jsonPrompt, "gemma3:4b", 6); + jsonText = await callOllama(jsonPrompt, "gemma3n:e4b", 6); const cleaned = jsonText.replace(/```json|```/g, "").trim(); const result = JSON.parse(cleaned); console.log("🎉 Dungeon generation complete!");