From 1abcd8e262d2c67bc328338ae881d57274eada91 Mon Sep 17 00:00:00 2001 From: Kevin Cheung Date: Fri, 15 Nov 2024 13:03:57 -0800 Subject: [PATCH] docs: Update streaming flows snippet --- js/doc-snippets/src/flows/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/doc-snippets/src/flows/index.ts b/js/doc-snippets/src/flows/index.ts index 35686e714b..3439da35f8 100644 --- a/js/doc-snippets/src/flows/index.ts +++ b/js/doc-snippets/src/flows/index.ts @@ -102,8 +102,7 @@ export const menuSuggestionStreamingFlow = ai.defineStreamingFlow( // Here, you could process the chunk in some way before sending it to // the output stream via streamingCallback(). In this example, we output // the text of the chunk, unmodified. - // @ts-ignore - streamingCallback(chunk.text()); + streamingCallback(chunk.text); } }