From 9a4394008db937a9ad851589b9adfbd9e15333ef Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 29 Mar 2024 17:38:21 +0000 Subject: [PATCH] feat(client): increase default HTTP max_connections to 1000 and max_keepalive_connections to 100 (#428) --- src/anthropic/_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anthropic/_constants.py b/src/anthropic/_constants.py index 6e3bbbe0..951e6790 100644 --- a/src/anthropic/_constants.py +++ b/src/anthropic/_constants.py @@ -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