Remove Mistral specific mapping for 429 errors

When Mistral replies with a 503 error and message 'service tier capacity exceeded', it means the backend was at capacity, not that the user reached their rate limit and the error should not be converted to RateLimitError
This commit is contained in:
Arthur Darcet 2026-04-03 15:24:09 +02:00 committed by GitHub
parent d1df4e838b
commit 6b182ae63e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,12 +56,6 @@ class ExceptionCheckers:
if re.search(r"rate[\s_\-]*limit", _error_str_lower):
return True
#######################################
# Mistral API returns this error string
#########################################
if "service tier capacity exceeded" in _error_str_lower:
return True
return False
@staticmethod