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/configuration/models.mdx
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,50 +166,50 @@ The [Vercel AI SDK](https://sdk.vercel.ai/providers/ai-sdk-providers) is a popul
166
166
167
167
Vercel AI SDK supports providers for OpenAI, Anthropic, and Google, along with support for **Amazon Bedrock** and **Azure OpenAI**. For a full list, see the [Vercel AI SDK providers page](https://sdk.vercel.ai/providers/ai-sdk-providers).
168
168
169
-
To get started, you'll need to install the `ai` package and the provider you want to use. For example, to use Amazon Bedrock, you'll need to install the `@ai-sdk/amazon-bedrock` package.
169
+
To get started, you'll need to install the `ai` package (version 4) and the provider you want to use (version 1) - both need to be compatible with LanguageModelV1. For example, to use Amazon Bedrock, you'll need to install the `@ai-sdk/amazon-bedrock` package.
170
170
171
171
You'll also need to import the [Vercel AI SDK external client](https://github.com/browserbase/stagehand/blob/main/lib/llm/aisdk.ts) through Stagehand to create a client for your model.
172
172
173
173
<Tabs>
174
174
<Tabtitle="npm">
175
175
```bash
176
-
npm install ai @ai-sdk/amazon-bedrock
176
+
npm install ai@4 @ai-sdk/amazon-bedrock@1
177
177
```
178
178
</Tab>
179
179
180
180
<Tabtitle="pnpm">
181
181
```bash
182
-
pnpm install ai @ai-sdk/amazon-bedrock
182
+
pnpm install ai@4 @ai-sdk/amazon-bedrock@1
183
183
```
184
184
</Tab>
185
185
186
186
<Tabtitle="yarn">
187
187
```bash
188
-
yarn add ai @ai-sdk/amazon-bedrock
188
+
yarn add ai@4 @ai-sdk/amazon-bedrock@1
189
189
```
190
190
</Tab>
191
191
</Tabs>
192
192
193
193
<Note>
194
-
The `AISdkClient` is not yet available in the Stagehand npm package. For now, install Stagehand as a dependency to access the `AISdkClient` (this will be included in the npm package in an upcoming release).
194
+
The `AISdkClient` is not yet available via the Stagehand npm package. For now, install Stagehand as a git repository to access the `AISdkClient` (this will be included in the npm package in an upcoming release).
0 commit comments