From ce3e193e677e502764522e2a01cf762cc6e5f896 Mon Sep 17 00:00:00 2001 From: Kevin CATHALY Date: Wed, 24 Jan 2024 14:47:42 +0100 Subject: [PATCH] close the stream after the final answer (#722) Co-authored-by: Kevin CATHALY --- src/routes/conversation/[id]/+server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/conversation/[id]/+server.ts b/src/routes/conversation/[id]/+server.ts index db0b2a9eec9..0fb75c9ffdf 100644 --- a/src/routes/conversation/[id]/+server.ts +++ b/src/routes/conversation/[id]/+server.ts @@ -349,6 +349,7 @@ export async function POST({ request, locals, params, getClientAddress }) { }); await summarizeIfNeeded; + controller.close(); return; }, async cancel() {