fix: pipe stream through sse transform even without redis (#1085)
This commit is contained in:
parent
a073d71c28
commit
256305d19f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue