Skip to content

Commit 3c39a05

Browse files
authored
[docs] export aisdk (#1074)
# why Updating docs to reflect aisdk can be imported directly # what changed The model page # test plan Reviewed page with mintlify dev locally
1 parent 87505a3 commit 3c39a05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/configuration/models.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Vercel AI SDK supports providers for OpenAI, Anthropic, and Google, along with s
168168

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

171-
You'll also need to use the [Vercel AI SDK external client](https://github.com/browserbase/stagehand/blob/main/examples/external_clients/aisdk.ts) as a template to create a client for your model.
171+
You'll also need to import the [Vercel AI SDK external client](https://github.com/browserbase/stagehand/blob/main/lib/llm/aisdk.ts) which is exposed as `AISdkClient` to create a client for your model.
172172

173173
<Tabs>
174174
<Tab title="npm">
@@ -190,13 +190,13 @@ You'll also need to use the [Vercel AI SDK external client](https://github.com/b
190190
</Tab>
191191
</Tabs>
192192

193-
To get started, you can use the [Vercel AI SDK external client](https://github.com/browserbase/stagehand/blob/84f810b4631291307a32a47addad7e26e9c1deb3/examples/external_clients/aisdk.ts) as a template to create a client for your model.
193+
To get started, you can use the [Vercel AI SDK external client](https://github.com/browserbase/stagehand/blob/main/lib/llm/aisdk.ts) which is exposed as `AISdkClient` to create a client for your model.
194194

195195
```ts
196196
// Install/import the provider you want to use.
197197
// For example, to use OpenAI, import `openai` from @ai-sdk/openai
198198
import { bedrock } from "@ai-sdk/amazon-bedrock";
199-
import { AISdkClient } from "./external_clients/aisdk";
199+
import { AISdkClient } from "@browserbasehq/stagehand";
200200

201201
const stagehand = new Stagehand({
202202
llmClient: new AISdkClient({

0 commit comments

Comments
 (0)