1
0

auto-git:

[change] main.js
This commit is contained in:
2025-05-31 19:30:50 +02:00
parent 5001f7a098
commit 541a3ab4bc

View File

@@ -347,7 +347,7 @@ ${JSON.stringify(commits, null, 2)}
// ---- 3. LLM Streaming Call ---- // ---- 3. LLM Streaming Call ----
async function streamLLMCommitMessages(prompt, onDataChunk, win) { async function streamLLMCommitMessages(prompt, onDataChunk, win) {
await ensureOllamaRunning(); await ensureOllamaRunning();
const selectedModel = store.get('commitModel') || 'qwen2.5-coder:32b'; const selectedModel = store.get('commitModel') || 'qwen2.5-coder:7b';
const response = await fetch('http://localhost:11434/api/generate', { const response = await fetch('http://localhost:11434/api/generate', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },