Skip to content

Commit

Permalink
fix - vertex ai exception mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jun 8, 2024
1 parent 761df07 commit 366fc5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions litellm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down Expand Up @@ -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/",
Expand All @@ -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/",
Expand Down Expand Up @@ -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/",
),
),
)
Expand Down

0 comments on commit 366fc5e

Please sign in to comment.