fix(utils.py): vertex ai exception mapping

fixes check which caused all vertex errors to be ratelimit errors
This commit is contained in:
Krrish Dholakia 2024-04-11 23:04:21 -07:00
parent d89644d46c
commit c377ba0755

View file

@ -7766,7 +7766,7 @@ def exception_type(
)
elif (
"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
raise RateLimitError(