SCREAMING
This commit is contained in:
parent
06d954f106
commit
fc5ec7c37a
@ -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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user