fix test test_partner_models_httpx

This commit is contained in:
Ishaan Jaff 2024-11-14 17:52:50 -08:00
parent 6f1466a26b
commit 9d53b8836e

View file

@ -975,6 +975,7 @@ async def test_partner_models_httpx(model, sync_mode):
data = { data = {
"model": model, "model": model,
"messages": messages, "messages": messages,
"timeout": 10,
} }
if sync_mode: if sync_mode:
response = litellm.completion(**data) response = litellm.completion(**data)
@ -988,6 +989,8 @@ async def test_partner_models_httpx(model, sync_mode):
assert isinstance(response._hidden_params["response_cost"], float) assert isinstance(response._hidden_params["response_cost"], float)
except litellm.RateLimitError as e: except litellm.RateLimitError as e:
pass pass
except litellm.Timeout as e:
pass
except litellm.InternalServerError as e: except litellm.InternalServerError as e:
pass pass
except Exception as e: except Exception as e: