-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat(model_cost): add display_name, model_vendor, and model_family to all models #17330
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
Open
nmgarza5
wants to merge
1
commit into
BerriAI:main
Choose a base branch
from
nmgarza5:add-model-metadata
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,534
−211
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
@nmgarza5 is attempting to deploy a commit to the CLERKIEAI Team on Vercel. A member of the Team first needs to authorize it. |
c7e3d51 to
5b09e13
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5b09e13 to
9370444
Compare
9485796 to
8ed6e6f
Compare
8ed6e6f to
3a24055
Compare
3a24055 to
40c3ee2
Compare
Author
|
Lint failures here are unrelated to these changes |
1 task
40c3ee2 to
2eb4311
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
Add display_name and model_vendor metadata to all models. Add model_version where relevant. These changes should not be breaking. They just add additional model info to the end user which provide a QoL boost. Parsing out the raw model name is painful as there is no standardized format.
some example updates:
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
🆕 New Feature
Changes
This PR adds three new metadata fields to every model entry in
model_prices_and_context_window.json:display_name: A human-readable name for the model (e.g., "Claude Sonnet 3.5", "GPT-4o", "Gemini 2.0 Flash")model_vendor: The organization that created the model (e.g., "anthropic", "openai", "google", "meta")These fields enable better UI display and categorization of models in applications built on LiteLLM, making it easier to:
The metadata was generated using pattern matching against model keys and provider information to accurately detect vendors and families across 2000+ model entries.