fix(utils.py): fix azure exception mapping

This commit is contained in:
Krrish Dholakia 2024-02-01 19:05:20 -08:00
parent 0ab8b764cc
commit 71ee4524c5
2 changed files with 18 additions and 0 deletions

View file

@ -279,6 +279,9 @@ def test_completion_azure_gpt4_vision():
except openai.RateLimitError as e:
print("got a rate liimt error", e)
pass
except openai.APIStatusError as e:
print("got an api status error", e)
pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")