From 6809370e04e6db46670d09205d151cc0fc358e6e Mon Sep 17 00:00:00 2001 From: tyler Date: Mon, 18 May 2026 18:14:45 -0400 Subject: [PATCH] Fixed mayber --- ollama_answers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ollama_answers.py b/ollama_answers.py index 02bbc24..8f1c86c 100644 --- a/ollama_answers.py +++ b/ollama_answers.py @@ -945,6 +945,7 @@ FRONTEND_JS_TEMPLATE = r""" } __STREAM_FN_SIG__ { + console.log('[AI Answers] startStream called, isStreaming:', isStreaming); if (isStreaming) { console.warn('[AI Answers] Stream already in progress, ignoring duplicate call'); return; @@ -976,7 +977,9 @@ FRONTEND_JS_TEMPLATE = r""" return; } + console.log('[AI Answers] /ai-stream response:', res.status, res.ok); const respJson = await res.json(); + console.log('[AI Answers] respJson:', JSON.stringify(respJson)); if (respJson.error) { const cursorErr = data.querySelector('.sxng-cursor'); @@ -989,6 +992,7 @@ FRONTEND_JS_TEMPLATE = r""" } const jobId = respJson.job_id; + console.log('[AI Answers] jobId:', jobId); if (!jobId) { const cursorErr = data.querySelector('.sxng-cursor'); if (cursorErr) cursorErr.remove(); @@ -1100,6 +1104,7 @@ FRONTEND_JS_TEMPLATE = r""" if (!statusRes.ok) continue; const statusData = await statusRes.json(); + if (polls === 1) console.log('[AI Answers] First poll response:', JSON.stringify(statusData)); if (statusData.error) { const cursorE = data.querySelector('.sxng-cursor');