From 3c03e82f982e9db050d5d25f9a53593ba55a9603 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 17 Nov 2023 10:48:21 -0800 Subject: [PATCH] (docs) update migration guide --- docs/my-website/docs/migration.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/my-website/docs/migration.md b/docs/my-website/docs/migration.md index 6ab29982e74..db14caae759 100644 --- a/docs/my-website/docs/migration.md +++ b/docs/my-website/docs/migration.md @@ -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. @@ -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")` - response objects now inherit from `BaseModel` (prev. `OpenAIObject`) - *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?** Tell us