File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 19
2
2
openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml
3
3
openapi_spec_hash : 73b92bd5503ab6c64dc26da31cca36e2
4
- config_hash : aafe2b8c43d82d9838c8b77cdd59189f
4
+ config_hash : 65328ff206b8c0168c915914506d9dba
Original file line number Diff line number Diff line change @@ -216,15 +216,15 @@ client.with_options(max_retries=5).browsers.create(
216
216
217
217
### Timeouts
218
218
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,
220
220
which accepts a float or an [ ` httpx.Timeout ` ] ( https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration ) object:
221
221
222
222
``` python
223
223
from kernel import Kernel
224
224
225
225
# Configure the default for all requests:
226
226
client = Kernel(
227
- # 20 seconds (default is 5 seconds )
227
+ # 20 seconds (default is 1 minute )
228
228
timeout = 20.0 ,
229
229
)
230
230
Original file line number Diff line number Diff line change 5
5
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
6
6
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
7
7
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 )
10
10
DEFAULT_MAX_RETRIES = 2
11
11
DEFAULT_CONNECTION_LIMITS = httpx .Limits (max_connections = 100 , max_keepalive_connections = 20 )
12
12
You can’t perform that action at this time.
0 commit comments