From 678c8c3aaad4434392a6d8a986dfb2bf5fdc5c3c Mon Sep 17 00:00:00 2001 From: Jason Yang Date: Thu, 11 Sep 2025 16:58:47 -0700 Subject: [PATCH 1/2] Update limits --- src/agentex/_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agentex/_constants.py b/src/agentex/_constants.py index 6ddf2c71..23fde04e 100644 --- a/src/agentex/_constants.py +++ b/src/agentex/_constants.py @@ -8,7 +8,7 @@ # default timeout is 1 minute DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, 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=500) INITIAL_RETRY_DELAY = 0.5 MAX_RETRY_DELAY = 8.0 From 1e92074431f35aa756ad5e61cbc65daf1270b9b3 Mon Sep 17 00:00:00 2001 From: Jason Yang Date: Thu, 11 Sep 2025 17:41:17 -0700 Subject: [PATCH 2/2] Adding changes --- src/agentex/_constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agentex/_constants.py b/src/agentex/_constants.py index 23fde04e..44ad5b2d 100644 --- a/src/agentex/_constants.py +++ b/src/agentex/_constants.py @@ -6,9 +6,9 @@ OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to" # default timeout is 1 minute -DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0) -DEFAULT_MAX_RETRIES = 2 -DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=1000, max_keepalive_connections=500) +DEFAULT_TIMEOUT = httpx.Timeout(timeout=300, connect=5.0) +DEFAULT_MAX_RETRIES = 0 +DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=1000, max_keepalive_connections=1000) INITIAL_RETRY_DELAY = 0.5 MAX_RETRY_DELAY = 8.0