forked from phoenix/litellm-mirror
fix(utils.py): vertex ai exception mapping
fixes check which caused all vertex errors to be ratelimit errors
This commit is contained in:
parent
d89644d46c
commit
c377ba0755
1 changed files with 1 additions and 1 deletions
|
@ -7766,7 +7766,7 @@ def exception_type(
|
||||||
)
|
)
|
||||||
elif (
|
elif (
|
||||||
"429 Quota exceeded" in error_str
|
"429 Quota exceeded" in error_str
|
||||||
or "IndexError: list index out of range"
|
or "IndexError: list index out of range" in error_str
|
||||||
):
|
):
|
||||||
exception_mapping_worked = True
|
exception_mapping_worked = True
|
||||||
raise RateLimitError(
|
raise RateLimitError(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue