mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
remove httpx.Timeout normalization, pass timeout as-is
This commit is contained in:
parent
24b768e271
commit
5e9191871f
3 changed files with 0 additions and 9 deletions
|
|
@ -35,9 +35,6 @@ def make_sync_call(
|
|||
stream_chunk_size: int = 1024,
|
||||
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
||||
):
|
||||
if timeout is not None and isinstance(timeout, (float, int)):
|
||||
timeout = httpx.Timeout(timeout)
|
||||
|
||||
if client is None:
|
||||
_params: dict = {}
|
||||
if timeout is not None:
|
||||
|
|
|
|||
|
|
@ -197,9 +197,6 @@ async def make_call(
|
|||
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
||||
):
|
||||
try:
|
||||
if timeout is not None and isinstance(timeout, (float, int)):
|
||||
timeout = httpx.Timeout(timeout)
|
||||
|
||||
if client is None:
|
||||
_params: dict = {}
|
||||
if logging_obj and logging_obj.litellm_params and logging_obj.litellm_params.get("ssl_verify"):
|
||||
|
|
|
|||
|
|
@ -2370,9 +2370,6 @@ async def make_call(
|
|||
logging_obj,
|
||||
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
||||
):
|
||||
if timeout is not None and isinstance(timeout, (float, int)):
|
||||
timeout = httpx.Timeout(timeout)
|
||||
|
||||
if gemini_client is not None:
|
||||
client = gemini_client
|
||||
if client is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue