Add token usage metadata to litellm judge adapter#21236
Merged
smoorjani merged 1 commit intomlflow:masterfrom Mar 2, 2026
Merged
Add token usage metadata to litellm judge adapter#21236smoorjani merged 1 commit intomlflow:masterfrom
smoorjani merged 1 commit intomlflow:masterfrom
Conversation
Contributor
🛠 DevTools 🛠
Install mlflow from this PRFor Databricks, use the following command: |
Contributor
|
Documentation preview for f7f734f is available at: More info
|
508ef81 to
33fdd35
Compare
Add JUDGE_INPUT_TOKENS and JUDGE_OUTPUT_TOKENS to assessment metadata in the litellm adapter alongside existing JUDGE_COST. Enable Databricks default judge model as fallback for available tools extraction. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com>
33fdd35 to
f7f734f
Compare
10 tasks
daniellok-db
pushed a commit
to daniellok-db/mlflow
that referenced
this pull request
Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com> Co-authored-by: Claude <noreply@anthropic.com>
daniellok-db
pushed a commit
to daniellok-db/mlflow
that referenced
this pull request
Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com> Co-authored-by: Claude <noreply@anthropic.com>
daniellok-db
pushed a commit
that referenced
this pull request
Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com> Co-authored-by: Claude <noreply@anthropic.com>
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
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.
Related Issues/PRs
#xxxWhat changes are proposed in this pull request?
JUDGE_INPUT_TOKENSandJUDGE_OUTPUT_TOKENSto assessment metadata in the litellm adapter alongside existingJUDGE_COSTHow is this PR tested?
Test 1: Token metadata in string-valued feedback
Output:
Test 2: Token metadata with boolean feedback_value_type
Output:
Does this PR require documentation update?
Does this PR require updating the MLflow Skills repository?
Release Notes
Is this a user-facing change?
What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflowsHow should the PR be classified in the release notes? Choose one:
rn/none- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionShould this PR be included in the next patch release?
What is a minor/patch release?
Bug fixes, doc updates and new features usually go into minor releases.
Bug fixes and doc updates usually go into patch releases.