forked from phoenix/litellm-mirror
(docs) update migration guide
This commit is contained in:
parent
aa2a9fff99
commit
3c03e82f98
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Migration
|
# Migration Guide - LiteLLM v1.0.0+
|
||||||
|
|
||||||
When we have breaking changes (i.e. going from 1.x.x to 2.x.x), we will document those changes here.
|
When we have breaking changes (i.e. going from 1.x.x to 2.x.x), we will document those changes here.
|
||||||
|
|
||||||
|
@ -16,6 +16,11 @@ When we have breaking changes (i.e. going from 1.x.x to 2.x.x), we will document
|
||||||
- `litellm.Litellm(api_key="sk-123")`
|
- `litellm.Litellm(api_key="sk-123")`
|
||||||
- response objects now inherit from `BaseModel` (prev. `OpenAIObject`)
|
- response objects now inherit from `BaseModel` (prev. `OpenAIObject`)
|
||||||
- *NEW* default exception - `APIConnectionError` (prev. `APIError`)
|
- *NEW* default exception - `APIConnectionError` (prev. `APIError`)
|
||||||
|
- litellm.get_max_tokens() now returns an int not a dict
|
||||||
|
```python
|
||||||
|
max_tokens = litellm.get_max_tokens("gpt-3.5-turbo") # returns an int not a dict
|
||||||
|
assert max_tokens==4097
|
||||||
|
```
|
||||||
|
|
||||||
**How can we communicate changes better?**
|
**How can we communicate changes better?**
|
||||||
Tell us
|
Tell us
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue