fix: temporary fix for resumable streams (#1236)

This commit is contained in:
josh 2025-09-21 19:52:02 +01:00 committed by GitHub
parent 2e5267bc11
commit fda9f1a322
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,15 +274,15 @@ export async function POST(request: Request) {
},
});
const streamContext = getStreamContext();
// const streamContext = getStreamContext();
if (streamContext) {
return new Response(
await streamContext.resumableStream(streamId, () =>
stream.pipeThrough(new JsonToSseTransformStream())
)
);
}
// if (streamContext) {
// return new Response(
// await streamContext.resumableStream(streamId, () =>
// stream.pipeThrough(new JsonToSseTransformStream())
// )
// );
// }
return new Response(stream.pipeThrough(new JsonToSseTransformStream()));
} catch (error) {