Skip to content

Commit 564f19c

Browse files
committed
fix: Don't retry api calls by default
It may be unsafe to retry since the server may have already started executing the requested work. At best, the consequent request will fail because the previous request is already running. At worst, the server may attempt to run the same work the second time. Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent 6155c31 commit 564f19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama_stack_client/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# default timeout is 1 minute
99
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
10-
DEFAULT_MAX_RETRIES = 2
10+
DEFAULT_MAX_RETRIES = 0
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

1313
INITIAL_RETRY_DELAY = 0.5

0 commit comments

Comments
 (0)