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 : 7
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/meta%2Fllama-api-edf0a308dd29bea2feb29f2e7f04eec4dbfb130ffe52511641783958168f60a4.yml
33openapi_spec_hash : 23af966c58151516aaef00e0af602c01
4- config_hash : 416c3d950e58dbdb47588eaf29fa9fa5
4+ config_hash : 03f620111ba8e892eb0fea5b2491dcb3
Original file line number Diff line number Diff line change @@ -282,15 +282,15 @@ client.with_options(max_retries=5).chat.completions.create(
282282
283283### Timeouts
284284
285- By default requests time out after 10 minutes . You can configure this with a ` timeout ` option,
285+ By default requests time out after 1.67 hours . You can configure this with a ` timeout ` option,
286286which accepts a float or an [ ` httpx.Timeout ` ] ( https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration ) object:
287287
288288``` python
289289from llama_api_client import LlamaAPIClient
290290
291291# Configure the default for all requests:
292292client = LlamaAPIClient(
293- # 20 seconds (default is 10 minutes )
293+ # 20 seconds (default is 1.67 hours )
294294 timeout = 20.0 ,
295295)
296296
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 10 minutes
9- DEFAULT_TIMEOUT = httpx .Timeout (timeout = 600 , connect = 5.0 )
8+ # default timeout is 1.67 hours
9+ DEFAULT_TIMEOUT = httpx .Timeout (timeout = 6000 , 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