Skip to content

Commit 1ff71fd

Browse files
committed
add o3
1 parent 8e84664 commit 1ff71fd

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

examples/example.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ import { Stagehand } from "@/dist";
99
import StagehandConfig from "@/stagehand.config";
1010

1111
async function example() {
12-
const stagehand = new Stagehand(StagehandConfig);
12+
const stagehand = new Stagehand({
13+
...StagehandConfig,
14+
// modelName: "o3-mini",
15+
});
1316
await stagehand.init();
17+
await stagehand.page.goto("https://www.google.com");
18+
await stagehand.page.act("type in browserbase and hit enter");
1419
}
1520

1621
(async () => {

lib/llm/LLMClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const modelsWithVision: AvailableModel[] = [
3030
"claude-3-5-sonnet-20240620",
3131
"claude-3-5-sonnet-20241022",
3232
"gpt-4o-2024-08-06",
33+
"o3-mini",
3334
];
3435

3536
export const AnnotatedScreenshotText =

lib/llm/LLMProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class LLMProvider {
1616
"gpt-4o-2024-08-06": "openai",
1717
"o1-mini": "openai",
1818
"o1-preview": "openai",
19+
"o3-mini": "openai",
1920
"claude-3-5-sonnet-latest": "anthropic",
2021
"claude-3-5-sonnet-20240620": "anthropic",
2122
"claude-3-5-sonnet-20241022": "anthropic",

types/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const AvailableModelSchema = z.enum([
1111
"claude-3-5-sonnet-20240620",
1212
"o1-mini",
1313
"o1-preview",
14+
"o3-mini",
1415
]);
1516

1617
export type AvailableModel = z.infer<typeof AvailableModelSchema>;

0 commit comments

Comments
 (0)