Skip to content

Commit

Permalink
vertex_ai/codestral@2405 is very unstable - handle their instability …
Browse files Browse the repository at this point in the history
…in our tests
  • Loading branch information
ishaan-jaff committed Nov 18, 2024
1 parent 585b54e commit e1ca956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/local_testing/test_amazing_vertex_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,8 @@ async def test_partner_models_httpx(model, sync_mode):
pass
except litellm.APIConnectionError as e:
pass
except litellm.ServiceUnavailableError as e:
pass
except Exception as e:
if "429 Quota exceeded" in str(e):
pass
Expand Down
3 changes: 3 additions & 0 deletions tests/local_testing/test_text_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4193,6 +4193,9 @@ async def test_completion_codestral_fim_api_stream(model):
except litellm.APIConnectionError as e:
print(e)
pass
except litellm.ServiceUnavailableError as e:
print(e)
pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")

Expand Down

0 comments on commit e1ca956

Please sign in to comment.