mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
docs(migration.md): new base case exception - apiconnectionerror
This commit is contained in:
parent
9bd1f4ebd0
commit
a27c2961dc
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue