`CreateSessionOptions` include proxies option
Closed this issue · 2 comments
N-Demir commented
I noticed that Browserbase.create_session(...)
isn't well documented but exists. Would be easier to use this function than the code on the API docs for creating a session with proxies enabled, but setting proxies=true
doesn't seem possible with CreateSessionOptions
defined as
class CreateSessionOptions(BaseModel):
projectId: Optional[str] = None
extensionId: Optional[str] = None
browserSettings: Optional[BrowserSettings] = None
timeout: Optional[int] = None
keepAlive: Optional[bool] = None
I would expect a python sdk api like .create_session(proxies=True)
N-Demir commented
never mind I see that proxy is an option for .get_connect_url()
N-Demir commented
You may want to consider updating this example then or your api to not cause confusion between the two. The docs make it seem like proxy should be set at a session level rather than at a connection level:
https://docs.browserbase.com/features/stealth-mode#proxy-configuration-options