Skip to content

Commit 2f2aed5

Browse files
feat(api): manual updates
1 parent 7a5d301 commit 2f2aed5

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: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/meta%2Fllama-api-edf0a308dd29bea2feb29f2e7f04eec4dbfb130ffe52511641783958168f60a4.yml
33
openapi_spec_hash: 23af966c58151516aaef00e0af602c01
4-
config_hash: 431a8aed31c3576451a36d2db8f48c25
4+
config_hash: 416c3d950e58dbdb47588eaf29fa9fa5

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 1 minute. You can configure this with a `timeout` option,
285+
By default requests time out after 10 minutes. You can configure this with a `timeout` option,
286286
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
287287

288288
```python
289289
from llama_api_client import LlamaAPIClient
290290

291291
# Configure the default for all requests:
292292
client = LlamaAPIClient(
293-
# 20 seconds (default is 1 minute)
293+
# 20 seconds (default is 10 minutes)
294294
timeout=20.0,
295295
)
296296

src/llama_api_client/_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 1 minute
9-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
8+
# default timeout is 10 minutes
9+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=600, 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)