SCREAMING

This commit is contained in:
Skylar Grant 2025-01-04 11:03:12 -05:00
parent 06d954f106
commit fc5ec7c37a

View File

@ -36,7 +36,9 @@ async function readResponse(response) {
console.log(`Value: ${new TextDecoder().decode(chunk.value)}`); console.log(`Value: ${new TextDecoder().decode(chunk.value)}`);
if (chunk.value) { if (chunk.value) {
const text = decoder.decode(chunk.value); const text = decoder.decode(chunk.value);
console.log(`Text: ${text}`);
finishedResponse += text; finishedResponse += text;
console.log(`(un)finishedResponse: ${finishedResponse}`);
} }
if (chunk.done) { if (chunk.done) {
console.log(`Finished: ${finishedResponse}`); console.log(`Finished: ${finishedResponse}`);