Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion eval_protocol/pytest/exception_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import backoff


import litellm
import requests
import httpx

Expand All @@ -28,6 +28,12 @@
httpx.TimeoutException,
httpx.NetworkError,
httpx.RemoteProtocolError,
litellm.exceptions.RateLimitError,
litellm.exceptions.InternalServerError,
litellm.exceptions.Timeout,
litellm.exceptions.NotFoundError,
litellm.exceptions.BadRequestError,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Retryable Exceptions Include Permanent Errors

Including litellm.exceptions.NotFoundError and litellm.exceptions.BadRequestError in the default retryable exceptions is problematic. These typically represent permanent client-side errors (like HTTP 400/404) that won't resolve on retry, leading to wasteful attempts and delayed failure reporting.

Fix in Cursor Fix in Web

litellm.exceptions.ServiceUnavailableError,
}


Expand Down
Loading