You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cohere/base_client.py
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1593,7 +1593,8 @@ class AsyncBaseCohere:
1593
1593
The timeout to be used, in seconds, for requests. By default the timeout is 300 seconds, unless a custom httpx client is used, in which case this default is not enforced.
1594
1594
1595
1595
follow_redirects : typing.Optional[bool]
1596
-
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
1596
+
Whether the async client follows HTTP redirects. Defaults to True. Passed as allow_redirects
1597
+
on each request; does NOT affect TCP connection reuse (connections are always pooled).
1597
1598
1598
1599
httpx_client : typing.Optional[httpx.AsyncClient]
1599
1600
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
@@ -1625,19 +1626,25 @@ def __init__(
1625
1626
iftokenisNone:
1626
1627
raiseApiError(body="The client must be instantiated be either passing in token or setting CO_API_KEY")
1627
1628
1628
-
# Create aiohttp session if not provided
1629
+
# Create aiohttp session if not provided.
1630
+
# NOTE: force_close is intentionally NOT derived from follow_redirects.
0 commit comments