Skip to content
Snippets Groups Projects
Commit 69c2e16c authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

fix: streaming for express

parent f5da6623
No related branches found
No related tags found
No related merge requests found
---
"create-llama": patch
---
Fix streaming for Express
......@@ -64,9 +64,8 @@ export const chat = async (req: Request, res: Response) => {
image_url: data?.imageUrl,
},
});
const processedStream = stream.pipeThrough(vercelStreamData.stream);
return streamToResponse(processedStream, res);
return streamToResponse(stream, res, {}, vercelStreamData);
} catch (error) {
console.error("[LlamaIndex]", error);
return res.status(500).json({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment