mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 18:23:28 +00:00
docs(migration.md): new base case exception - apiconnectionerror
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user