new version ndjson

This commit is contained in:
team 1
2026-02-12 11:22:56 +01:00
parent 0bb0c0b42f
commit 5a52e07edc
10 changed files with 375 additions and 492 deletions

View File

@@ -113,12 +113,16 @@ document.addEventListener('DOMContentLoaded', () => {
const text = dataLines.join('\n');
if (text === '[DONE]') {
// Finales Rendering mit Normalisierung
// 🔥 Final render flush
if (renderTimer) {
clearTimeout(renderTimer);
renderTimer = null;
}
bubble.innerHTML = renderMarkdown(raw);
chatEl.scrollTop = chatEl.scrollHeight;
abort = true;
return;
}