Skip to content

Commit 2b5b2e6

Browse files
committed
update
1 parent c04d330 commit 2b5b2e6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/configuration/models.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,50 +166,50 @@ The [Vercel AI SDK](https://sdk.vercel.ai/providers/ai-sdk-providers) is a popul
166166

167167
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).
168168

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.
170170

171171
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.
172172

173173
<Tabs>
174174
<Tab title="npm">
175175
```bash
176-
npm install ai @ai-sdk/amazon-bedrock
176+
npm install ai@4 @ai-sdk/amazon-bedrock@1
177177
```
178178
</Tab>
179179

180180
<Tab title="pnpm">
181181
```bash
182-
pnpm install ai @ai-sdk/amazon-bedrock
182+
pnpm install ai@4 @ai-sdk/amazon-bedrock@1
183183
```
184184
</Tab>
185185

186186
<Tab title="yarn">
187187
```bash
188-
yarn add ai @ai-sdk/amazon-bedrock
188+
yarn add ai@4 @ai-sdk/amazon-bedrock@1
189189
```
190190
</Tab>
191191
</Tabs>
192192

193193
<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).
195195
</Note>
196196

197197
<Tabs>
198198
<Tab title="npm">
199199
```bash
200-
npm install @browserbasehq/stagehand
200+
npm install @browserbasehq/stagehand@git+https://github.com/browserbase/stagehand.git
201201
```
202202
</Tab>
203203

204204
<Tab title="pnpm">
205205
```bash
206-
pnpm install @browserbasehq/stagehand
206+
pnpm install @browserbasehq/stagehand@git+https://github.com/browserbase/stagehand.git
207207
```
208208
</Tab>
209209

210210
<Tab title="yarn">
211211
```bash
212-
yarn add @browserbasehq/stagehand
212+
yarn add @browserbasehq/stagehand@git+https://github.com/browserbase/stagehand.git
213213
```
214214
</Tab>
215215
</Tabs>
@@ -218,7 +218,8 @@ The `AISdkClient` is not yet available in the Stagehand npm package. For now, in
218218
// Install/import the provider you want to use.
219219
// For example, to use Azure OpenAI, import { createAzure } from '@ai-sdk/azure';
220220
import { bedrock } from "@ai-sdk/amazon-bedrock";
221-
import { AISdkClient } from "@browserbasehq/stagehand/lib/llm/aisdk";
221+
// @ts-ignore
222+
import { AISdkClient } from "@browserbasehq/stagehand";
222223

223224
const stagehand = new Stagehand({
224225
llmClient: new AISdkClient({

0 commit comments

Comments
 (0)