Skip to content

Commit 5efd001

Browse files
feat(api): manual updates
1 parent 48483d5 commit 5efd001

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-2c88c6d890406ff8a5f1bca692264fb9af4bc4fe64df0986e06d3386fc6d6fcb.yml
33
openapi_spec_hash: dc6ea17f8152708dc0a390c7f86b1a5d
4-
config_hash: b01f15c540ab2c92808c2bba96368631
4+
config_hash: bdeeac521c2cf3846aec9f75cb681d97

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ client = Stagehand(
4242
)
4343

4444
response = client.sessions.act(
45-
session_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
45+
session_id="00000000-your-session-id-000000000000",
4646
input="click the first link on the page",
4747
)
4848
print(response.actions)
@@ -75,7 +75,7 @@ client = AsyncStagehand(
7575

7676
async def main() -> None:
7777
response = await client.sessions.act(
78-
session_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
78+
session_id="00000000-your-session-id-000000000000",
7979
input="click the first link on the page",
8080
)
8181
print(response.actions)
@@ -118,7 +118,7 @@ async def main() -> None:
118118
http_client=DefaultAioHttpClient(),
119119
) as client:
120120
response = await client.sessions.act(
121-
session_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
121+
session_id="00000000-your-session-id-000000000000",
122122
input="click the first link on the page",
123123
)
124124
print(response.actions)
@@ -170,8 +170,8 @@ client = Stagehand()
170170

171171
try:
172172
client.sessions.start(
173-
browserbase_api_key="BROWSERBASE_API_KEY",
174-
browserbase_project_id="BROWSERBASE_PROJECT_ID",
173+
browserbase_api_key="<your API key here>",
174+
browserbase_project_id="<your project ID here>",
175175
)
176176
except stagehand.APIConnectionError as e:
177177
print("The server could not be reached")
@@ -216,8 +216,8 @@ client = Stagehand(
216216

217217
# Or, configure per-request:
218218
client.with_options(max_retries=5).sessions.start(
219-
browserbase_api_key="BROWSERBASE_API_KEY",
220-
browserbase_project_id="BROWSERBASE_PROJECT_ID",
219+
browserbase_api_key="<your API key here>",
220+
browserbase_project_id="<your project ID here>",
221221
)
222222
```
223223

@@ -242,8 +242,8 @@ client = Stagehand(
242242

243243
# Override per-request:
244244
client.with_options(timeout=5.0).sessions.start(
245-
browserbase_api_key="BROWSERBASE_API_KEY",
246-
browserbase_project_id="BROWSERBASE_PROJECT_ID",
245+
browserbase_api_key="<your API key here>",
246+
browserbase_project_id="<your project ID here>",
247247
)
248248
```
249249

@@ -286,8 +286,8 @@ from stagehand import Stagehand
286286

287287
client = Stagehand()
288288
response = client.sessions.with_raw_response.start(
289-
browserbase_api_key="BROWSERBASE_API_KEY",
290-
browserbase_project_id="BROWSERBASE_PROJECT_ID",
289+
browserbase_api_key="<your API key here>",
290+
browserbase_project_id="<your project ID here>",
291291
)
292292
print(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
309309
with client.sessions.with_streaming_response.start(
310-
browserbase_api_key="BROWSERBASE_API_KEY",
311-
browserbase_project_id="BROWSERBASE_PROJECT_ID",
310+
browserbase_api_key="<your API key here>",
311+
browserbase_project_id="<your project ID here>",
312312
) as response:
313313
print(response.headers.get("X-My-Header"))
314314

0 commit comments

Comments
 (0)