Skip to content

Commit

Permalink
random changes and hope for the best
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderPoint07 committed Oct 21, 2023
1 parent f75e1b1 commit b5cf9ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ai-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ async function sendUserMessageToAI(userMessage) {
}
// Convert the chunk value to a string
const chunkString = new TextDecoder().decode(value);
if (chunkString !== undefined){
console.log(chunkString)
if (chunkString != undefined){
botResponse += chunkString
}
// Read the next chunk
Expand Down

0 comments on commit b5cf9ff

Please sign in to comment.