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 133f9a31710..d31efdcce5c 100644 --- a/content/docs/02-getting-started/02-nextjs-app-router.mdx +++ b/content/docs/02-getting-started/02-nextjs-app-router.mdx @@ -276,7 +276,7 @@ Now, when you ask about the weather, you'll see the tool invocation and its resu ## Enabling Multi-Step Tool Calls -You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has techincally completed its generation. +You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has technically completed its generation. To solve this, you can enable multi-step tool calls using the `maxSteps` option in your `useChat` hook. This feature will automatically send tool results back to the model to trigger an additional generation. In this case, you want the model to answer your question using the results from the weather tool. diff --git a/content/docs/02-getting-started/03-nextjs-pages-router.mdx b/content/docs/02-getting-started/03-nextjs-pages-router.mdx index 461e72bac80..c9240896d56 100644 --- a/content/docs/02-getting-started/03-nextjs-pages-router.mdx +++ b/content/docs/02-getting-started/03-nextjs-pages-router.mdx @@ -274,7 +274,7 @@ Now, when you ask about the weather, you'll see the tool invocation and its resu ## Enabling Multi-Step Tool Calls -You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has techincally completed its generation. +You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has technically completed its generation. To solve this, you can enable multi-step tool calls using the `maxSteps` option in your `useChat` hook. This feature will automatically send tool results back to the model to trigger an additional generation. In this case, you want the model to answer your question using the results from the weather tool. diff --git a/content/docs/02-getting-started/06-nodejs.mdx b/content/docs/02-getting-started/06-nodejs.mdx index 111cbc84841..022edb1b327 100644 --- a/content/docs/02-getting-started/06-nodejs.mdx +++ b/content/docs/02-getting-started/06-nodejs.mdx @@ -281,7 +281,7 @@ Now, when you ask about the weather, you'll see the tool call and its result dis ## Enabling Multi-Step Tool Calls -You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has techincally completed its generation. +You may have noticed that while the tool results are visible in the chat interface, the model isn't using this information to answer your original query. This is because once the model generates a tool call, it has technically completed its generation. To solve this, you can enable multi-step tool calls using `maxSteps`. This feature will automatically send tool results back to the model to trigger an additional generation. In this case, you want the model to answer your question using the results from the weather tool.