Skip to content

Commit 69c2e16

Browse files
fix: streaming for express
1 parent f5da662 commit 69c2e16

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/three-cameras-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-llama": patch
3+
---
4+
5+
Fix streaming for Express

templates/types/streaming/express/src/controllers/chat.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ export const chat = async (req: Request, res: Response) => {
6464
image_url: data?.imageUrl,
6565
},
6666
});
67-
const processedStream = stream.pipeThrough(vercelStreamData.stream);
6867

69-
return streamToResponse(processedStream, res);
68+
return streamToResponse(stream, res, {}, vercelStreamData);
7069
} catch (error) {
7170
console.error("[LlamaIndex]", error);
7271
return res.status(500).json({

0 commit comments

Comments
 (0)