Skip to content

Commit d9058fc

Browse files
committed
update default model
1 parent e49174c commit d9058fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stagehand/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ class StagehandConfig(BaseModel):
8484
description="Session ID for resuming Browserbase sessions",
8585
)
8686
model_name: Optional[str] = Field(
87-
AvailableModel.GPT_4O, alias="modelName", description="Name of the model to use"
87+
AvailableModel.GPT_4_1_MINI,
88+
alias="modelName",
89+
description="Name of the model to use",
8890
)
8991
self_heal: Optional[bool] = Field(
9092
True, alias="selfHeal", description="Enable self-healing functionality"

stagehand/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class AvailableModel(str, Enum):
1616
GPT_4O = "gpt-4o"
1717
GPT_4O_MINI = "gpt-4o-mini"
18+
GPT_4_1_MINI = "gpt-4.1-mini"
1819
CLAUDE_3_5_SONNET_LATEST = "claude-3-5-sonnet-latest"
1920
CLAUDE_3_7_SONNET_LATEST = "claude-3-7-sonnet-latest"
2021
COMPUTER_USE_PREVIEW = "computer-use-preview"

0 commit comments

Comments
 (0)