Skip to content

Commit

Permalink
while i was writing this, only god and me knew what this did. Now onl…
Browse files Browse the repository at this point in the history
…y god does
  • Loading branch information
EnderPoint07 committed Oct 21, 2023
1 parent 0b1b8cb commit e6efc92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ async function sendUserMessageToAI(userMessage) {
// Convert the chunk value to a string
const chunkString = new TextDecoder().decode(value);
botResponse += chunkString
// if (chunkString != undefined){
// botResponse += chunkString
// }
// Read the next chunk
readChunk();
})
Expand All @@ -87,8 +90,8 @@ async function sendUserMessageToAI(userMessage) {
});
};
await readChunk()

console.log(botResponse)

removeTypingIndicator();
appendBotMessage(botResponse);
})
Expand Down

0 comments on commit e6efc92

Please sign in to comment.