From c41964b940218f57d5bf115d70ef4ccc4169ea91 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 24 May 2025 21:03:31 +0200 Subject: [PATCH] auto-git: [change] main.js --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 975cbec..576e070 100644 --- a/main.js +++ b/main.js @@ -226,11 +226,12 @@ ${JSON.stringify(commits, null, 2)} // ---- 3. LLM Streaming Call ---- async function streamLLMCommitMessages(prompt, onDataChunk) { + const selectedModel = await window.settingsAPI.getCommitModel?.() ?? 'qwen2.5-coder:32b'; const response = await fetch('http://localhost:11434/api/generate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ - model: 'qwen2.5-coder:32b', // ggf. Modell anpassen + model: selectedModel, // ggf. Modell anpassen prompt: prompt, stream: true })