Skip to content

fix(langfuse): keep model labels consistent across rankings - #83

Merged
kwisatzh merged 1 commit into
mainfrom
fix/langfuse-model-labels-20261027
Oct 27, 2026
Merged

kwisatzh merged 1 commit into
mainfrom
fix/langfuse-model-labels-20261027

Conversation

@kwisatzh

Copy link
Copy Markdown
Contributor

Summary

  • Use one model-label vocabulary across the model section, token contributors
    and cache rankings under --group-by provided_model_name.
  • Preserve exact bundled public model IDs and duplicate-public disambiguation.
    Keep private names aliased and keyed identities/project separation unchanged.
  • Add regressions for different token/cache ranking orders, separate projects,
    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.sh
  • sh examples/investigate.sh --two-stacks
  • sh examples/investigate.sh --missing-usage
  • sh examples/investigate.sh --sessions
  • Built-binary Langfuse example with both trace_name and
    provided_model_name, in text and JSON.
  • git diff --check

Code authors: Vijay and Codex

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>
@kwisatzh
kwisatzh merged commit f1a79a6 into main Oct 27, 2026
15 checks passed
@kwisatzh
kwisatzh deleted the fix/langfuse-model-labels-20261027 branch October 27, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant