From 256305d19fb82109ab135fb4b3b6b65a77bc2403 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 8 Jul 2025 11:50:12 -0700 Subject: [PATCH] fix: pipe stream through sse transform even without redis (#1085) --- app/(chat)/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts index 3d2663e..b7ea099 100644 --- a/app/(chat)/api/chat/route.ts +++ b/app/(chat)/api/chat/route.ts @@ -216,7 +216,7 @@ export async function POST(request: Request) { ), ); } else { - return new Response(stream); + return new Response(stream.pipeThrough(new JsonToSseTransformStream())); } } catch (error) { if (error instanceof ChatSDKError) {