feat: handle client disconnects (#814)

This commit is contained in:
Jeremy 2025-02-19 19:09:03 -06:00 committed by GitHub
parent 27ff566258
commit ef7eb9dd5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 20 deletions

View file

@ -116,6 +116,8 @@ export async function POST(request: Request) {
},
});
result.consumeStream();
result.mergeIntoDataStream(dataStream, {
sendReasoning: true,
});