Skip to content

Commit 9e95add

Browse files
don't import from barrel in exported example aisdk client (#1209)
# why - circular import caused error when running examples # what changed - changed imports in external aisdk example to import from the source instead of the barrel file
1 parent da33c5a commit 9e95add

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/ready-rules-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
fix circular import in exported aisdk example client

packages/core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Most existing browser automation tools either require you to write low-level cod
6161

6262
2. **Go from AI-driven to repeatable workflows**: Stagehand lets you preview AI actions before running them, and also helps you easily cache repeatable actions to save time and tokens.
6363

64-
3. **Write once, run forever**: Stagehand's auto-caching combined with self-healing remembers previous actions, runs without LLM inference, and knows when to involve AI whenever the website changes and your automation breaks.
64+
3. **Write once, run forever**: Stagehand's auto-caching combined with self-healing remembers previous actions, runs without LLM inference, and knows when to involve AI whenever the website changes and your automation breaks.
6565

6666
## Getting Started
6767

@@ -101,7 +101,6 @@ const { author, title } = await stagehand.extract(
101101

102102
Visit [docs.stagehand.dev](https://docs.stagehand.dev) to view the full documentation.
103103

104-
105104
### Build and Run from Source
106105

107106
```bash
@@ -131,6 +130,7 @@ At a high level, we're focused on improving reliability, extensibility, speed, a
131130
## Acknowledgements
132131

133132
We'd like to thank the following people for their major contributions to Stagehand:
133+
134134
- [Paul Klein](https://github.com/pkiv)
135135
- [Sean McGuire](https://github.com/seanmcguire12)
136136
- [Miguel Gonzalez](https://github.com/miguelg719)

packages/core/examples/external_clients/aisdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import type { LanguageModelV2 } from "@ai-sdk/provider";
1313
import {
1414
CreateChatCompletionOptions,
1515
LLMClient,
16-
AvailableModel,
17-
} from "../../lib/v3";
16+
} from "../../lib/v3/llm/LLMClient";
17+
import { AvailableModel } from "../../lib/v3/types/public";
1818
import { ChatCompletion } from "openai/resources";
1919

2020
export class AISdkClient extends LLMClient {

0 commit comments

Comments
 (0)