Kevin CATHALY Kevin CATHALY commited on
Commit
ce3e193
1 Parent(s): 77adc4d

close the stream after the final answer (#722)

Browse files

Co-authored-by: Kevin CATHALY <alakme@kevins-mbp.home>

src/routes/conversation/[id]/+server.ts CHANGED
@@ -349,6 +349,7 @@ export async function POST({ request, locals, params, getClientAddress }) {
349
  });
350
 
351
  await summarizeIfNeeded;
 
352
  return;
353
  },
354
  async cancel() {
 
349
  });
350
 
351
  await summarizeIfNeeded;
352
+ controller.close();
353
  return;
354
  },
355
  async cancel() {