File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ import { Stagehand } from "@/dist";
9
9
import StagehandConfig from "@/stagehand.config" ;
10
10
11
11
async function example ( ) {
12
- const stagehand = new Stagehand ( StagehandConfig ) ;
12
+ const stagehand = new Stagehand ( {
13
+ ...StagehandConfig ,
14
+ // modelName: "o3-mini",
15
+ } ) ;
13
16
await stagehand . init ( ) ;
17
+ await stagehand . page . goto ( "https://www.google.com" ) ;
18
+ await stagehand . page . act ( "type in browserbase and hit enter" ) ;
14
19
}
15
20
16
21
( async ( ) => {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export const modelsWithVision: AvailableModel[] = [
30
30
"claude-3-5-sonnet-20240620" ,
31
31
"claude-3-5-sonnet-20241022" ,
32
32
"gpt-4o-2024-08-06" ,
33
+ "o3-mini" ,
33
34
] ;
34
35
35
36
export const AnnotatedScreenshotText =
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export class LLMProvider {
16
16
"gpt-4o-2024-08-06" : "openai" ,
17
17
"o1-mini" : "openai" ,
18
18
"o1-preview" : "openai" ,
19
+ "o3-mini" : "openai" ,
19
20
"claude-3-5-sonnet-latest" : "anthropic" ,
20
21
"claude-3-5-sonnet-20240620" : "anthropic" ,
21
22
"claude-3-5-sonnet-20241022" : "anthropic" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const AvailableModelSchema = z.enum([
11
11
"claude-3-5-sonnet-20240620" ,
12
12
"o1-mini" ,
13
13
"o1-preview" ,
14
+ "o3-mini" ,
14
15
] ) ;
15
16
16
17
export type AvailableModel = z . infer < typeof AvailableModelSchema > ;
You can’t perform that action at this time.
0 commit comments