docs(migration.md): new base case exception - apiconnectionerror

This commit is contained in:
Krrish Dholakia
2023-11-16 22:04:14 -08:00
parent 9bd1f4ebd0
commit a27c2961dc
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ LiteLLM maps exceptions across all providers to their OpenAI counterparts.
- APIError
- APIConnectionError
Base case we return APIError
Base case we return APIConnectionError
All our exceptions inherit from OpenAI's exception types, so any error-handling you have for that, should work out of the box with LiteLLM.
+1
View File
@@ -15,6 +15,7 @@ When we have breaking changes (i.e. going from 1.x.x to 2.x.x), we will document
- *NEW* litellm client, allow users to pass api_key
- `litellm.Litellm(api_key="sk-123")`
- response objects now inherit from `BaseModel` (prev. `OpenAIObject`)
- *NEW* default exception - `APIConnectionError` (prev. `APIError`)
**How can we communicate changes better?**
Tell us