mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
fix: handle InternalServerError in allowed fails policy
This commit is contained in:
parent
5be0797d24
commit
71ed3799c2
1 changed files with 5 additions and 0 deletions
|
|
@ -11744,6 +11744,11 @@ class Router:
|
|||
and allowed_fails_policy.BadRequestErrorAllowedFails is not None
|
||||
):
|
||||
return allowed_fails_policy.BadRequestErrorAllowedFails
|
||||
if (
|
||||
isinstance(exception, litellm.InternalServerError)
|
||||
and allowed_fails_policy.InternalServerErrorAllowedFails is not None
|
||||
):
|
||||
return allowed_fails_policy.InternalServerErrorAllowedFails
|
||||
|
||||
def _initialize_alerting(self):
|
||||
from litellm.integrations.SlackAlerting.slack_alerting import SlackAlerting
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue