From 9f9e87115d584edca97eb760c92f9b8ad280a1da Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Fri, 29 Nov 2024 13:32:46 -0500 Subject: [PATCH] update call tp tpDataStrem from toAIStream --- app/routes/api.enhancer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/api.enhancer.ts b/app/routes/api.enhancer.ts index 6b6b370ea..3a15af5af 100644 --- a/app/routes/api.enhancer.ts +++ b/app/routes/api.enhancer.ts @@ -96,7 +96,7 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) { }, }); - const transformedStream = result.toAIStream().pipeThrough(transformStream); + const transformedStream = result.toDataStream().pipeThrough(transformStream); return new StreamingTextResponse(transformedStream); } catch (error: unknown) {