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); } }