diff --git a/docs/src/content/docs/extensions/ai-sdk.mdx b/docs/src/content/docs/extensions/ai-sdk.mdx index 66fe989a..99055b0b 100644 --- a/docs/src/content/docs/extensions/ai-sdk.mdx +++ b/docs/src/content/docs/extensions/ai-sdk.mdx @@ -13,9 +13,7 @@ import aiSdkSetupExample from '../../../../../examples/docs/extensions/ai-sdk-se quickly. -Out of the box the Agents SDK works with OpenAI models through the Responses API or Chat -Completions API. However, if you would like to use another model, the [Vercel's AI SDK](https://sdk.vercel.ai/) offers a range -of supported models that can be brought into the Agents SDK through this adapter. +Out of the box the Agents SDK works with OpenAI models through the Responses API or Chat Completions API. However, if you would like to use another model, the [Vercel's AI SDK](https://sdk.vercel.ai/) offers a range of supported models that can be brought into the Agents SDK through this adapter. ## Setup @@ -30,7 +28,7 @@ of supported models that can be brought into the Agents SDK through this adapter 2. Choose your desired model package from the [Vercel's AI SDK](https://sdk.vercel.ai/docs/models/overview) and install it: ```bash - npm install @ai-sdk/openai@"^1.0.0" + npm install @ai-sdk/openai ``` 3. Import the adapter and model to connect to your agent: @@ -49,8 +47,11 @@ of supported models that can be brought into the Agents SDK through this adapter ## Example @@ -59,9 +60,7 @@ of supported models that can be brought into the Agents SDK through this adapter ## Passing provider metadata -If you need to send provider-specific options with a message, pass them through -`providerMetadata`. The values are forwarded directly to the underlying AI SDK -model. For example, the following `providerData` in the Agents SDK +If you need to send provider-specific options with a message, pass them through `providerMetadata`. The values are forwarded directly to the underlying AI SDK model. For example, the following `providerData` in the Agents SDK ```ts providerData: {