-
Notifications
You must be signed in to change notification settings - Fork 10
enable env browserbase for multi-region #100
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
Conversation
@@ -41,7 +41,6 @@ async def _create_session(self): | |||
}, | |||
} | |||
), | |||
"proxies": True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just the default config if none is passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should go inside browserbase_session_create_params anyway
and self.browserbase_session_create_params.get("region") | ||
and self.browserbase_session_create_params.get("region") != "us-west-2" | ||
): | ||
self.use_api = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
maybe update .env.example to also remove ENVIRONMENT var? |
stagehand/browser.py
Outdated
connect_url = session.connectUrl | ||
stagehand_instance.session_id = session.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move up
stagehand/config.py
Outdated
@@ -96,6 +96,16 @@ class StagehandConfig(BaseModel): | |||
alias="localBrowserLaunchOptions", | |||
description="Local browser launch options", | |||
) | |||
use_api: Optional[bool] = Field( | |||
True, | |||
alias="useAPI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None
stagehand/config.py
Outdated
) | ||
experimental: Optional[bool] = Field( | ||
False, | ||
alias="experimental", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
none
why
what changed
test plan