forked from phoenix/litellm-mirror
handle vertex ServiceUnavailableError for codestral
This commit is contained in:
parent
e1ca95672a
commit
128eeb4997
1 changed files with 3 additions and 0 deletions
|
@ -4145,6 +4145,9 @@ async def test_completion_codestral_fim_api(model):
|
|||
# cost = litellm.completion_cost(completion_response=response)
|
||||
# print("cost to make mistral completion=", cost)
|
||||
# assert cost > 0.0
|
||||
except litellm.ServiceUnavailableError:
|
||||
print("got ServiceUnavailableError")
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue