Skip to content

Commit

Permalink
feat: allow a default timeout to be set for clients (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and RobertCraigie committed Aug 16, 2023
1 parent a86363b commit a115d2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anthropic/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
_AsyncStreamT = TypeVar("_AsyncStreamT", bound=AsyncStream[Any])


DEFAULT_TIMEOUT = Timeout(timeout=60.0, connect=5.0)
# default timeout is 10 minutes
DEFAULT_TIMEOUT = Timeout(timeout=600.0, connect=5.0)
DEFAULT_MAX_RETRIES = 2
DEFAULT_LIMITS = Limits(max_connections=100, max_keepalive_connections=20)

Expand Down

0 comments on commit a115d2c

Please sign in to comment.