From 1b9e2fb244377ac1e4f5b39b745292904dc18133 Mon Sep 17 00:00:00 2001 From: Derrick Maina <91890976+MrMaina100@users.noreply.github.com> Date: Fri, 10 May 2024 10:26:31 +0300 Subject: [PATCH] Update: fix typo in 02-nextjs-app-router.mdx (#1547) --- content/docs/02-getting-started/02-nextjs-app-router.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/02-getting-started/02-nextjs-app-router.mdx b/content/docs/02-getting-started/02-nextjs-app-router.mdx index ca29b68ebef1..b4c6cbe3fb2e 100644 --- a/content/docs/02-getting-started/02-nextjs-app-router.mdx +++ b/content/docs/02-getting-started/02-nextjs-app-router.mdx @@ -98,7 +98,7 @@ Let's take a look at what is happening in this code: 3. The `streamText` function will return a [`StreamTextResult`](/docs/reference/ai-sdk-core/stream-text#result-object). This result object contains the [ `toAIStream` ](/docs/reference/ai-sdk-core/stream-text#to-ai-stream) function which will be used in the next step to convert the stream into a format compatible with `StreamingTextResponse`. 4. Finally, you send the result to the client by returning a new [`StreamingTextResponse`](/docs/reference/stream-helpers/streaming-text-response), passing the AI Stream from the `result` object described in the previous step. This will set the required headers and response details to allow the client to stream the response. -This Route Handler creates a POST request endpint at `/api/chat`. +This Route Handler creates a POST request endpoint at `/api/chat`. ## Wire up the UI