You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/extensions/ai-sdk.mdx
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,7 @@ import aiSdkSetupExample from '../../../../../examples/docs/extensions/ai-sdk-se
13
13
quickly.
14
14
</Aside>
15
15
16
-
Out of the box the Agents SDK works with OpenAI models through the Responses API or Chat
17
-
Completions API. However, if you would like to use another model, the [Vercel's AI SDK](https://sdk.vercel.ai/) offers a range
18
-
of supported models that can be brought into the Agents SDK through this adapter.
16
+
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.
19
17
20
18
## Setup
21
19
@@ -30,7 +28,7 @@ of supported models that can be brought into the Agents SDK through this adapter
30
28
2. Choose your desired model package from the [Vercel's AI SDK](https://ai-sdk.dev/docs/foundations/providers-and-models) and install it:
31
29
32
30
```bash
33
-
npm install @ai-sdk/openai@"^1.0.0"
31
+
npm install @ai-sdk/openai
34
32
```
35
33
36
34
3.Importtheadapterandmodeltoconnecttoyouragent:
@@ -49,8 +47,11 @@ of supported models that can be brought into the Agents SDK through this adapter
49
47
</Steps>
50
48
51
49
<Asidetype="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.
50
+
We currently support ai-sdk's model provider v2 modules, which are compatible
51
+
with Vercel AI SDK v5. If you have a specific reason to continue using the v1
@@ -59,9 +60,7 @@ of supported models that can be brought into the Agents SDK through this adapter
59
60
60
61
## Passing provider metadata
61
62
62
-
If you need to send provider-specific options with a message, pass them through
63
-
`providerMetadata`. The values are forwarded directly to the underlying AI SDK
64
-
model. For example, the following `providerData` in the Agents SDK
63
+
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
0 commit comments