-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove recursive call #8225
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d2df5bf
to
9db90b5
Compare
@@ -4362,6 +4357,25 @@ def _get_model_info_helper( # noqa: PLR0915 | |||
) | |||
|
|||
|
|||
def get_model_param_support( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @theGitNoob introducing a 2nd way of checking the model cost map is not preferable because it adds more scope for errors.
Ideally it is just using one flow - get_model_info()
i believe a workaround to avoid the recursive function is to use the underlying helper -
Line 4142 in 302cc4f
def _get_model_info_helper( # noqa: PLR0915 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump on this @theGitNoob
Title
Remove recursive call from together
Relevant issues
"Fixes #8223"
Type
🐛 Bug Fix
Changes
Added new method
This pull request removes unnecessary recursive call inside
litellm.llms.together_ai.chat.TogetherAIConfig
Code Refactoring:
litellm/llms/together_ai/chat.py
: Replaced theget_model_info
import withget_model_param_support
fromlitellm.utils
and updated theget_supported_openai_params
method to use this new utility function. [1]litellm/utils.py
: Added a new utility functionget_model_param_support
to retrieve model parameters .[1]Data Updates:
litellm/model_prices_and_context_window_backup.json
: Updated themax_input_tokens
for several models to correct values and addeddeprecation_date
for certain models. [1] [2] [3] [4] [5] [6] [7] [8] [9][REQUIRED] Testing - Attach a screenshot of any new tests passing locally
If UI changes, send a screenshot/GIF of working UI fixes