@@ -170,8 +170,8 @@ client = Stagehand()
170170
171171try :
172172 client.sessions.start(
173- browserbase_api_key = " <your API key here> " ,
174- browserbase_project_id = " <your project ID here> " ,
173+ browserbase_api_key = " BROWSERBASE_API_KEY " ,
174+ browserbase_project_id = " BROWSERBASE_PROJECT_ID " ,
175175 )
176176except stagehand.APIConnectionError as e:
177177 print (" The server could not be reached" )
@@ -216,8 +216,8 @@ client = Stagehand(
216216
217217# Or, configure per-request:
218218client.with_options(max_retries = 5 ).sessions.start(
219- browserbase_api_key = " <your API key here> " ,
220- browserbase_project_id = " <your project ID here> " ,
219+ browserbase_api_key = " BROWSERBASE_API_KEY " ,
220+ browserbase_project_id = " BROWSERBASE_PROJECT_ID " ,
221221)
222222```
223223
@@ -242,8 +242,8 @@ client = Stagehand(
242242
243243# Override per-request:
244244client.with_options(timeout = 5.0 ).sessions.start(
245- browserbase_api_key = " <your API key here> " ,
246- browserbase_project_id = " <your project ID here> " ,
245+ browserbase_api_key = " BROWSERBASE_API_KEY " ,
246+ browserbase_project_id = " BROWSERBASE_PROJECT_ID " ,
247247)
248248```
249249
@@ -286,8 +286,8 @@ from stagehand import Stagehand
286286
287287client = Stagehand()
288288response = client.sessions.with_raw_response.start(
289- browserbase_api_key = " <your API key here> " ,
290- browserbase_project_id = " <your project ID here> " ,
289+ browserbase_api_key = " BROWSERBASE_API_KEY " ,
290+ browserbase_project_id = " BROWSERBASE_PROJECT_ID " ,
291291)
292292print (response.headers.get(' X-My-Header' ))
293293
@@ -307,8 +307,8 @@ To stream the response body, use `.with_streaming_response` instead, which requi
307307
308308``` python
309309with client.sessions.with_streaming_response.start(
310- browserbase_api_key = " <your API key here> " ,
311- browserbase_project_id = " <your project ID here> " ,
310+ browserbase_api_key = " BROWSERBASE_API_KEY " ,
311+ browserbase_project_id = " BROWSERBASE_PROJECT_ID " ,
312312) as response:
313313 print (response.headers.get(" X-My-Header" ))
314314
0 commit comments