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 11configured_endpoints : 19
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml
33openapi_spec_hash : 73b92bd5503ab6c64dc26da31cca36e2
4- config_hash : 65328ff206b8c0168c915914506d9dba
4+ config_hash : aafe2b8c43d82d9838c8b77cdd59189f
Original file line number Diff line number Diff 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 1 minute . You can configure this with a ` timeout ` option,
219+ By default requests time out after 5 seconds . You can configure this with a ` timeout ` option,
220220which accepts a float or an [ ` httpx.Timeout ` ] ( https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration ) object:
221221
222222``` python
223223from kernel import Kernel
224224
225225# Configure the default for all requests:
226226client = Kernel(
227- # 20 seconds (default is 1 minute )
227+ # 20 seconds (default is 5 seconds )
228228 timeout = 20.0 ,
229229)
230230
Original file line number Diff line number Diff line change 55RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
66OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
77
8- # default timeout is 1 minute
9- DEFAULT_TIMEOUT = httpx .Timeout (timeout = 60 , connect = 5.0 )
8+ # default timeout is 5 seconds
9+ DEFAULT_TIMEOUT = httpx .Timeout (timeout = 5 , connect = 5.0 )
1010DEFAULT_MAX_RETRIES = 2
1111DEFAULT_CONNECTION_LIMITS = httpx .Limits (max_connections = 100 , max_keepalive_connections = 20 )
1212
You can’t perform that action at this time.
0 commit comments