Skip to content

Commit 6266282

Browse files
feat(api): manual updates
1 parent 2d9ba52 commit 6266282

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
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: 26
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-ce018db4d6891d645cfb220c86d17ac1d431e1ba2f604e8015876b17a5a11149.yml
33
openapi_spec_hash: e9a00924682ab214ca5d8b6b5c84430e
4-
config_hash: 317a81a9027b1e17bb0b4012455daeac
4+
config_hash: dd3e22b635fa0eb9a7c741a8aaca2a7f

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ client = BrowserUse(
3333
)
3434

3535
task = client.tasks.create(
36-
task="x",
36+
task="Search for the top 10 Hacker News posts and return the title and url.",
3737
)
3838
print(task.id)
3939
```
@@ -59,7 +59,7 @@ client = AsyncBrowserUse(
5959

6060
async def main() -> None:
6161
task = await client.tasks.create(
62-
task="x",
62+
task="Search for the top 10 Hacker News posts and return the title and url.",
6363
)
6464
print(task.id)
6565

@@ -94,7 +94,7 @@ async def main() -> None:
9494
http_client=DefaultAioHttpClient(),
9595
) as client:
9696
task = await client.tasks.create(
97-
task="x",
97+
task="Search for the top 10 Hacker News posts and return the title and url.",
9898
)
9999
print(task.id)
100100

@@ -144,7 +144,7 @@ client = BrowserUse()
144144

145145
try:
146146
client.tasks.create(
147-
task="x",
147+
task="Search for the top 10 Hacker News posts and return the title and url.",
148148
)
149149
except browser_use_sdk.APIConnectionError as e:
150150
print("The server could not be reached")
@@ -189,7 +189,7 @@ client = BrowserUse(
189189

190190
# Or, configure per-request:
191191
client.with_options(max_retries=5).tasks.create(
192-
task="x",
192+
task="Search for the top 10 Hacker News posts and return the title and url.",
193193
)
194194
```
195195

@@ -214,7 +214,7 @@ client = BrowserUse(
214214

215215
# Override per-request:
216216
client.with_options(timeout=5.0).tasks.create(
217-
task="x",
217+
task="Search for the top 10 Hacker News posts and return the title and url.",
218218
)
219219
```
220220

@@ -257,7 +257,7 @@ from browser_use_sdk import BrowserUse
257257

258258
client = BrowserUse()
259259
response = client.tasks.with_raw_response.create(
260-
task="x",
260+
task="Search for the top 10 Hacker News posts and return the title and url.",
261261
)
262262
print(response.headers.get('X-My-Header'))
263263

@@ -277,7 +277,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
277277

278278
```python
279279
with client.tasks.with_streaming_response.create(
280-
task="x",
280+
task="Search for the top 10 Hacker News posts and return the title and url.",
281281
) as response:
282282
print(response.headers.get("X-My-Header"))
283283

0 commit comments

Comments
 (0)