forked from phoenix/litellm-mirror
Update exception_mapping.md
This commit is contained in:
parent
011e976d24
commit
22f5f7859f
1 changed files with 11 additions and 32 deletions
|
@ -40,38 +40,17 @@ To see how it's implemented - [check out the code](https://github.com/BerriAI/li
|
||||||
|
|
||||||
Base case - we return the original exception.
|
Base case - we return the original exception.
|
||||||
|
|
||||||
| LLM Provider | Returned Exception |
|
| | ContextWindowExceededError | AuthenticationError | InvalidRequestError | RateLimitError | ServiceUnavailableError |
|
||||||
|---------------|-----------------------------|
|
|---------------|----------------------------|---------------------|---------------------|---------------|-------------------------|
|
||||||
| Anthropic | ContextWindowExceededError |
|
| Anthropic | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Anthropic | AuthenticationError |
|
| OpenAI | ✅ | ✅ |✅ |✅ |✅ |
|
||||||
| Anthropic | AuthenticationError |
|
| Replicate | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||||
| Anthropic | InvalidRequestError |
|
| Cohere | ✅ | ✅ | | ✅ | |
|
||||||
| Anthropic | RateLimitError |
|
| Huggingface | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| OpenAI | ContextWindowExceededError |
|
| Openrouter | ✅ | ✅ | | ✅ | |
|
||||||
| Replicate | ContextWindowExceededError |
|
| AI21 | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Replicate | AuthenticationError |
|
| TogetherAI | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Replicate | InvalidRequestError |
|
|
||||||
| Replicate | RateLimitError |
|
|
||||||
| Replicate | ServiceUnavailableError |
|
|
||||||
| Cohere | AuthenticationError |
|
|
||||||
| Cohere | ContextWindowExceededError |
|
|
||||||
| Cohere | RateLimitError |
|
|
||||||
| Huggingface | ContextWindowExceededError |
|
|
||||||
| Huggingface | InvalidRequestError |
|
|
||||||
| Huggingface | AuthenticationError |
|
|
||||||
| Huggingface | RateLimitError |
|
|
||||||
| Openrouter | ContextWindowExceededError |
|
|
||||||
| Openrouter | AuthenticationError |
|
|
||||||
| Openrouter | RateLimitError |
|
|
||||||
| AI21 | ContextWindowExceededError |
|
|
||||||
| AI21 | InvalidRequestError |
|
|
||||||
| AI21 | AuthenticationError |
|
|
||||||
| AI21 | RateLimitError |
|
|
||||||
| TogetherAI | ContextWindowExceededError |
|
|
||||||
| TogetherAI | InvalidRequestError |
|
|
||||||
| TogetherAI | InvalidRequestError |
|
|
||||||
| TogetherAI | AuthenticationError |
|
|
||||||
| TogetherAI | RateLimitError |
|
|
||||||
|
|
||||||
> For a deeper understanding of these exceptions, you can check out [this](https://github.com/BerriAI/litellm/blob/d7e58d13bf9ba9edbab2ab2f096f3de7547f35fa/litellm/utils.py#L1544) implementation for additional insights.
|
> For a deeper understanding of these exceptions, you can check out [this](https://github.com/BerriAI/litellm/blob/d7e58d13bf9ba9edbab2ab2f096f3de7547f35fa/litellm/utils.py#L1544) implementation for additional insights.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue