grr
This commit is contained in:
parent
914b7895b2
commit
4f7e00648e
@ -39,7 +39,9 @@ async function readResponse(response) {
|
|||||||
finishedResponse += text;
|
finishedResponse += text;
|
||||||
}
|
}
|
||||||
if (chunk.done) {
|
if (chunk.done) {
|
||||||
|
console.log(`Finished: ${finishedResponse}`);
|
||||||
const lines = finishedResponse.split('\n');
|
const lines = finishedResponse.split('\n');
|
||||||
|
console.log(lines);
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
const line = lines[i];
|
const line = lines[i];
|
||||||
if (line.length > 0) {
|
if (line.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user