forked from phoenix/litellm-mirror
(docs) exception mapping - add more details
This commit is contained in:
parent
84fde01461
commit
dbcff752b3
1 changed files with 12 additions and 7 deletions
|
@ -1,13 +1,18 @@
|
|||
# Exception Mapping
|
||||
|
||||
LiteLLM maps exceptions across all providers to their OpenAI counterparts.
|
||||
- Rate Limit Errors
|
||||
- Invalid Request Errors
|
||||
- Authentication Errors
|
||||
- Timeout Errors `openai.APITimeoutError`
|
||||
- ServiceUnavailableError
|
||||
- APIError
|
||||
- APIConnectionError
|
||||
|
||||
| Status Code | Error Type |
|
||||
|-------------|--------------------------|
|
||||
| 400 | BadRequestError |
|
||||
| 401 | AuthenticationError |
|
||||
| 403 | PermissionDeniedError |
|
||||
| 404 | NotFoundError |
|
||||
| 422 | UnprocessableEntityError |
|
||||
| 429 | RateLimitError |
|
||||
| >=500 | InternalServerError |
|
||||
| N/A | APIConnectionError |
|
||||
|
||||
|
||||
Base case we return APIConnectionError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue