From 061dcb20c15be2ff96210b31c6ae3ebb0f77061c Mon Sep 17 00:00:00 2001 From: Siraj637909 Date: Sat, 15 Aug 2026 12:22:22 +0530 Subject: [PATCH] fix(router): add NotFoundErrorRetries to retry policy (#36896) --- litellm/router_utils/get_retry_from_policy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/router_utils/get_retry_from_policy.py b/litellm/router_utils/get_retry_from_policy.py index ce6b6c7c122..3496e7fce81 100644 --- a/litellm/router_utils/get_retry_from_policy.py +++ b/litellm/router_utils/get_retry_from_policy.py @@ -27,6 +27,7 @@ def get_num_retries_from_retry_policy( TimeoutErrorRetries: Optional[int] = None RateLimitErrorRetries: Optional[int] = None ContentPolicyViolationErrorRetries: Optional[int] = None + NotFoundErrorRetries: Optional[int] = None """ # if we can find the exception then in the retry policy -> return the number of retries