Skip to content

Commit 8f12b76

Browse files
chore: docs about ai-sdk v2 and v1 compatibility (#301)
1 parent 0858c98 commit 8f12b76

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
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
33+
npm install @ai-sdk/openai@"^1.0.0"
3434
```
3535

3636
3. Import the adapter and model to connect to your agent:
@@ -48,6 +48,11 @@ of supported models that can be brought into the Agents SDK through this adapter
4848

4949
</Steps>
5050

51+
<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.
54+
</Aside>
55+
5156
## Example
5257

5358
<Code lang="typescript" code={aiSdkSetupExample} title="AI SDK Setup" />

0 commit comments

Comments
 (0)