Skip to content

De-duplicate models in team settings dropdown #12074

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

Merged
merged 1 commit into from
Jun 28, 2025

Conversation

NANDINI-star
Copy link
Collaborator

@NANDINI-star NANDINI-star commented Jun 26, 2025

Title

De-duplicate models in team settings dropdown

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

  • This pull request resolves an issue where the model selection dropdown in the team settings could display duplicate model names.
    The list of user-selectable models is now filtered to ensure each model appears only once, providing a cleaner and less confusing user experience. This was achieved by converting the userModels array to a Set and then back to an array using Array.from().
Screenshot 2025-06-27 at 2 25 10

Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 5:25pm

@krrishdholakia krrishdholakia merged commit 0ba4dde into main Jun 28, 2025
11 checks passed
@krrishdholakia krrishdholakia deleted the edit-team-models-bug branch June 28, 2025 04:31
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.

2 participants