?
This commit is contained in:
parent
6ffe15ef9f
commit
e2d12044fd
@ -35,9 +35,10 @@ async function readResponse(response) {
|
||||
if (chunk.value) {
|
||||
const text = decoder.decode(chunk.value, { stream: true });
|
||||
finishedResponse += text;
|
||||
outputArea.innerHTML = finishedResponse;
|
||||
}
|
||||
if (chunk.done) {
|
||||
const responseJSON = JSON.parse(finishedResponse);
|
||||
console.log(responseJSON);
|
||||
return;
|
||||
}
|
||||
read();
|
||||
|
Loading…
Reference in New Issue
Block a user