Skip to content

Commit

Permalink
feat(client): increase default HTTP max_connections to 1000 and max_k…
Browse files Browse the repository at this point in the history
…eepalive_connections to 100 (#428)
  • Loading branch information
stainless-bot authored Mar 29, 2024
1 parent cbd8b1c commit 9a43940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anthropic/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# default timeout is 10 minutes
DEFAULT_TIMEOUT = httpx.Timeout(timeout=600.0, connect=5.0)
DEFAULT_MAX_RETRIES = 2
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=1000, max_keepalive_connections=100)

INITIAL_RETRY_DELAY = 0.5
MAX_RETRY_DELAY = 8.0
Expand Down

0 comments on commit 9a43940

Please sign in to comment.