Repository navigation
fix(langfuse): keep model labels consistent across rankings - #83
Merged
Merged
Conversation
Use one model-label vocabulary for model totals, token contributors and cache rankings when grouping Langfuse exports by provided_model_name. Reuse the final model-section label, preserving exact bundled public model IDs, duplicate-public disambiguation and private-name aliases. Keep keyed model identities and project-scoped contributor identities unchanged. Cover different ranking orders, project separation, public and private names, and text/JSON output with regressions. Code authors: Vijay and Codex Signed-off-by: Vijay <evijay@gmail.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.
Summary
and cache rankings under
--group-by provided_model_name.Keep private names aliased and keyed identities/project separation unchanged.
public/private names, fixed/ephemeral keys and text/JSON reports.
No changes to token or cost accounting, example data, dependencies or releases.
Verification
Passed on these exact sources:
go test -race -p 1 ./...go vet -p 1 ./...sh examples/investigate.shsh examples/investigate.sh --two-stackssh examples/investigate.sh --missing-usagesh examples/investigate.sh --sessionstrace_nameandprovided_model_name, in text and JSON.git diff --checkCode authors: Vijay and Codex