fix: pipe stream through sse transform even without redis (#1085)

This commit is contained in:
Jeremy 2025-07-08 11:50:12 -07:00 committed by GitHub
parent a073d71c28
commit 256305d19f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,7 +216,7 @@ export async function POST(request: Request) {
), ),
); );
} else { } else {
return new Response(stream); return new Response(stream.pipeThrough(new JsonToSseTransformStream()));
} }
} catch (error) { } catch (error) {
if (error instanceof ChatSDKError) { if (error instanceof ChatSDKError) {