Skip to content

Commit

Permalink
fixuop
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed May 10, 2024
1 parent 38ac249 commit dbfe084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/scripts/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -248,7 +248,7 @@ async function drawStreamedMessageContents (parent, message) {

const tokenString = escapeHtml(tokens.join(''))
fullResponse += tokenString

const lines = tokenString.split('\n')

if (newLine) {
Expand Down

0 comments on commit dbfe084

Please sign in to comment.