Skip to content

fix api key example in README #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2025
Merged

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

@@ -128,7 +128,7 @@ async def main():
api_key=os.getenv("BROWSERBASE_API_KEY"),
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