Skip to content
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

enforce unique key and team aliases in the ui #3572

Conversation

powerhouseofthecell
Copy link
Contributor

@powerhouseofthecell powerhouseofthecell commented May 10, 2024

Title

Feature: enforce unique key and team aliases in the UI

Relevant issues

Fixes #3236

Type

🆕 New Feature

Changes

  • Requires unique team alias when creating a new team in the UI
  • Requires a unique key alias (per team) when creating a new key in the UI
  • Adds user-facing error message on key-creation failure (parallel to the same error message for team-creation)

Testing

Manual testing:

  • go to UI
  • create a team
  • create another team with the same alias
  • create a key for a team
  • create another key with the same alias for the same team

Notes

this does not implement the uniqueness constraint on the backend, so calls to the API with the same key name could create keys or teams with duplicate aliases

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

Copy link

vercel bot commented May 10, 2024

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 May 10, 2024 10:46pm

@krrishdholakia krrishdholakia merged commit 69068f9 into BerriAI:main May 11, 2024
2 checks passed
@krrishdholakia
Copy link
Contributor

Thanks for this @powerhouseofthecell

Curious, how do you use litellm today?

Attaching my calendly, if you'd like to chat - https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat

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.

[Feature]: UI Improvements - Unique Key Aliases, Team Aliases, show number of API Keys per Team
2 participants