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
|
# Exception Mapping
|
||||||
|
|
||||||
LiteLLM maps exceptions across all providers to their OpenAI counterparts.
|
LiteLLM maps exceptions across all providers to their OpenAI counterparts.
|
||||||
- Rate Limit Errors
|
|
||||||
- Invalid Request Errors
|
| Status Code | Error Type |
|
||||||
- Authentication Errors
|
|-------------|--------------------------|
|
||||||
- Timeout Errors `openai.APITimeoutError`
|
| 400 | BadRequestError |
|
||||||
- ServiceUnavailableError
|
| 401 | AuthenticationError |
|
||||||
- APIError
|
| 403 | PermissionDeniedError |
|
||||||
- APIConnectionError
|
| 404 | NotFoundError |
|
||||||
|
| 422 | UnprocessableEntityError |
|
||||||
|
| 429 | RateLimitError |
|
||||||
|
| >=500 | InternalServerError |
|
||||||
|
| N/A | APIConnectionError |
|
||||||
|
|
||||||
|
|
||||||
Base case we return APIConnectionError
|
Base case we return APIConnectionError
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue