Skip to content

Commit 256305d

Browse files
fix: pipe stream through sse transform even without redis (#1085)
1 parent a073d71 commit 256305d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/(chat)/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export async function POST(request: Request) {
216216
),
217217
);
218218
} else {
219-
return new Response(stream);
219+
return new Response(stream.pipeThrough(new JsonToSseTransformStream()));
220220
}
221221
} catch (error) {
222222
if (error instanceof ChatSDKError) {

0 commit comments

Comments
 (0)