Skip to content

Commit 59db8d0

Browse files
feat(api): manual updates
1 parent 8c97268 commit 59db8d0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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: 19
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml
33
openapi_spec_hash: 73b92bd5503ab6c64dc26da31cca36e2
4-
config_hash: aafe2b8c43d82d9838c8b77cdd59189f
4+
config_hash: 65328ff206b8c0168c915914506d9dba

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,15 @@ client.with_options(max_retries=5).browsers.create(
216216

217217
### Timeouts
218218

219-
By default requests time out after 5 seconds. You can configure this with a `timeout` option,
219+
By default requests time out after 1 minute. You can configure this with a `timeout` option,
220220
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
221221

222222
```python
223223
from kernel import Kernel
224224

225225
# Configure the default for all requests:
226226
client = Kernel(
227-
# 20 seconds (default is 5 seconds)
227+
# 20 seconds (default is 1 minute)
228228
timeout=20.0,
229229
)
230230

src/kernel/_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
66
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
77

8-
# default timeout is 5 seconds
9-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=5, connect=5.0)
8+
# default timeout is 1 minute
9+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
1010
DEFAULT_MAX_RETRIES = 2
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

0 commit comments

Comments
 (0)