Skip to content

Conversation

friparia
Copy link
Contributor

@friparia friparia commented Jul 3, 2025

why

config model_client_options is not in config.py, this configuration not working

https://github.com/browserbase/stagehand-python/blob/main/stagehand/config.py#L22

what changed

change this config to model_api_key

test plan

project_id=os.getenv("BROWSERBASE_PROJECT_ID"),
model_name="google/gemini-2.5-flash-preview-05-20",
model_client_options={"apiKey": os.getenv("MODEL_API_KEY")},
model_api_key=os.getenv("MODEL_API_KEY"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@miguelg719
Copy link
Collaborator

Thanks for the contrib @friparia !

@miguelg719 miguelg719 merged commit cbcc333 into browserbase:main Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants