-
-
Notifications
You must be signed in to change notification settings - Fork 5k
[Fix] Make /litellm_model_cost_map public #16795
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| """ | ||
| Return a mapping of model names to their litellm_provider and mode. | ||
| This is a public endpoint that provides the same structure as /get/litellm_model_cost_map | ||
| but without cost information, making it accessible to non-admin users. |
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.
is there a reason to hide the cost information?
My understanding of /get/litellm_model_cost_map is that it's just our publicly available cost info being returned, so why not just make it a public route?
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.
cc: @ishaan-jaff am i missing something?
…orkflow" This reverts commit 8a4fefc.
[Fix] Make /litellm_model_cost_map public
Relevant issues
There was no reason to keep /get/litellm_model_cost_map a proxy admin only route. All the data displayed is public information. I moved this route to /public/litellm_model_cost_map
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitType
🐛 Bug Fix
✅ Test
Changes