From 366fc5e40b67d569edad5d46fe8dcf9da8432a46 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 7 Jun 2024 18:16:26 -0700 Subject: [PATCH] fix - vertex ai exception mapping --- litellm/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 06fc420c3..d80d7d68f 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -9165,7 +9165,7 @@ def exception_type( model=model, llm_provider="vertex_ai", response=httpx.Response( - status_code=429, + status_code=400, request=httpx.Request( method="POST", url=" https://cloud.google.com/vertex-ai/", @@ -9196,7 +9196,7 @@ def exception_type( model=model, llm_provider="vertex_ai", response=httpx.Response( - status_code=429, + status_code=403, request=httpx.Request( method="POST", url=" https://cloud.google.com/vertex-ai/", @@ -9212,7 +9212,7 @@ def exception_type( llm_provider="vertex_ai", litellm_debug_info=extra_information, response=httpx.Response( - status_code=429, + status_code=422, request=httpx.Request( method="POST", url=" https://cloud.google.com/vertex-ai/", @@ -9249,10 +9249,10 @@ def exception_type( llm_provider="vertex_ai", litellm_debug_info=extra_information, response=httpx.Response( - status_code=429, + status_code=400, request=httpx.Request( method="POST", - url=" https://cloud.google.com/vertex-ai/", + url="https://cloud.google.com/vertex-ai/", ), ), )