Skip to content

Commit beb0d43

Browse files
committed
model updates
1 parent 5d00943 commit beb0d43

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/agent_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
async def main():
3636
# Build a unified configuration object for Stagehand
3737
config = StagehandConfig(
38-
# env="BROWSERBASE",
39-
env="LOCAL",
38+
env="BROWSERBASE",
39+
# env="LOCAL",
4040
api_key=os.getenv("BROWSERBASE_API_KEY"),
4141
project_id=os.getenv("BROWSERBASE_PROJECT_ID"),
4242
model_name="gpt-4o",
@@ -64,7 +64,7 @@ async def main():
6464

6565
console.print("\n▶️ [highlight] Using Agent to perform a task[/]: playing a game of 2048")
6666
agent = stagehand.agent(
67-
model="computer-use-preview-10-2025",
67+
model="gemini-2.5-computer-use-preview-10-2025",
6868
instructions="You are a helpful web navigation assistant that helps users find information. You are currently on the following page: google.com. Do not ask follow up questions, the user will trust your judgement.",
6969
options={"apiKey": os.getenv("GEMINI_API_KEY")}
7070
)

stagehand/agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"claude-3-7-sonnet-latest": AnthropicCUAClient,
2323
"claude-sonnet-4-20250514": AnthropicCUAClient,
2424
"claude-sonnet-4-5-20250929": AnthropicCUAClient,
25-
"computer-use-preview-10-2025": GoogleCUAClient,
25+
"gemini-2.5-computer-use-preview-10-2025": GoogleCUAClient,
2626
}
2727
MODEL_TO_PROVIDER_MAP: dict[str, AgentProvider] = {
2828
"computer-use-preview-03-11": AgentProvider.OPENAI,
2929
"claude-3-5-sonnet-20240620": AgentProvider.ANTHROPIC,
3030
"claude-3-7-sonnet-20250219": AgentProvider.ANTHROPIC,
3131
"claude-sonnet-4-20250514": AgentProvider.ANTHROPIC,
3232
"claude-sonnet-4-5-20250929": AgentProvider.ANTHROPIC,
33-
"computer-use-preview-10-2025": AgentProvider.GOOGLE,
33+
"gemini-2.5-computer-use-preview-10-2025": AgentProvider.GOOGLE,
3434
# Add more mappings as needed
3535
}
3636

0 commit comments

Comments
 (0)