Skip to content

Commit 424b041

Browse files
committed
Update ai-sdk document page after releasing #356
1 parent 8cf5356 commit 424b041

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/src/content/docs/extensions/ai-sdk.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ of supported models that can be brought into the Agents SDK through this adapter
3030
2. Choose your desired model package from the [Vercel's AI SDK](https://sdk.vercel.ai/docs/models/overview) and install it:
3131

3232
```bash
33-
npm install @ai-sdk/openai@"^1.0.0"
33+
npm install @ai-sdk/openai
3434
```
3535

3636
3. Import the adapter and model to connect to your agent:
@@ -49,8 +49,11 @@ of supported models that can be brought into the Agents SDK through this adapter
4949
</Steps>
5050

5151
<Aside type="caution">
52-
Vercel's AI SDK has recently migrated to v2, however openai agent extensions is not yet compatible with v2.
53-
Therefore v1 versions of Vercel's AI SDK has to be installed.
52+
We currently support ai-sdk's model provider v2 modules, which are compatible
53+
with Vercel AI SDK v5. If you have a specific reason to continue using the v1
54+
model providers, you can copy the module from
55+
https://github.com/openai/openai-agents-js/tree/main/examples/ai-sdk-v1 and
56+
include it in your project.
5457
</Aside>
5558

5659
## Example

0 commit comments

Comments
 (0)