Skip to content

Commit

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

0 comments on commit f1c6888

Please sign in to comment.