This commit is contained in:
Timothy J. Baek
2024-10-21 13:45:28 -07:00
parent 3dd10f2ca0
commit fc71f441c4
2 changed files with 3 additions and 5 deletions

View File

@@ -78,8 +78,7 @@
for (const line of lines) {
if (line !== '') {
if (line === 'data: [DONE]') {
// responseMessage.done = true;
if (line.includes('[DONE]')) {
console.log('done');
} else {
let data = JSON.parse(line.replace(/^data: /, ''));