From dbfe0842a5c94e189c749df08e5482d0a93541e9 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 10 May 2024 12:55:10 +0200 Subject: [PATCH] fixuop Signed-off-by: Matteo Collina --- static/scripts/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/scripts/chat.js b/static/scripts/chat.js index efe8641..3ddbfd3 100644 --- a/static/scripts/chat.js +++ b/static/scripts/chat.js @@ -236,7 +236,7 @@ function drawCompletedResponseMessageContents (parent, message) { async function drawStreamedMessageContents (parent, message) { let fullResponse = '' let current = document.createElement('p') - let newLine = true + let newLine = true parent.appendChild(current) const parser = new SSEParser(message.response[message.responseIndex]) @@ -248,7 +248,7 @@ async function drawStreamedMessageContents (parent, message) { const tokenString = escapeHtml(tokens.join('')) fullResponse += tokenString - + const lines = tokenString.split('\n') if (newLine) {