This commit is contained in:
Skylar Grant 2025-01-04 10:59:35 -05:00
parent 914b7895b2
commit 4f7e00648e

View File

@ -39,7 +39,9 @@ async function readResponse(response) {
finishedResponse += text;
}
if (chunk.done) {
console.log(`Finished: ${finishedResponse}`);
const lines = finishedResponse.split('\n');
console.log(lines);
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
if (line.length > 0) {