From a6ee1e04fecab78f86366ceb1f6cb1a0d7f86b0e Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 21 Aug 2024 07:01:02 -0700 Subject: [PATCH] test(test_completion.py): fix test --- litellm/tests/test_completion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index cfe1685236..4b275a342e 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -4032,7 +4032,9 @@ def test_completion_gemini(model): # Add any assertions,here to check the response print(response) assert response.choices[0]["index"] == 0 - except litellm.APIError as e: + except litellm.RateLimitError: + pass + except litellm.APIError: pass except Exception as e: if "InternalServerError" in str(e):