litellm/ui
Ryan Crabbe 9dca431989
fix(ui): use entity key for export instead of extracting team_id from api_key_breakdown
The export utility always extracted team_id from api_key_breakdown
metadata to populate the entity label/ID columns. This worked for
team exports (where entity key = team_id) but was wrong for every
other entity type — tags, orgs, customers, agents, users all
showed the API key's team name (e.g. "admins") instead of the
actual entity value.

Replace extractTeamIdFromApiKeyBreakdown with resolveEntityDisplay
which uses the entity key directly. For teams the teamAliasMap
still resolves a human-readable alias; for all other types the
entity key itself is the correct label.
2026-04-04 13:54:42 -07:00
..
litellm-dashboard fix(ui): use entity key for export instead of extracting team_id from api_key_breakdown 2026-04-04 13:54:42 -07:00