Skip to content

Commit

Permalink
close the stream after the final answer (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin CATHALY <[email protected]>
  • Loading branch information
alak and Kevin CATHALY authored Jan 24, 2024
1 parent 77adc4d commit ce3e193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/conversation/[id]/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export async function POST({ request, locals, params, getClientAddress }) {
});

await summarizeIfNeeded;
controller.close();
return;
},
async cancel() {
Expand Down

0 comments on commit ce3e193

Please sign in to comment.