litellm - 💡(How to fix) Fix [Bug]: UI forces team selection for personal keys even when user has model access [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27292Fetched 2026-05-07 03:33:18
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×2commented ×1cross-referenced ×1mentioned ×1

Error Message

The error message shown: "Please select a team to continue configuring your Virtual Key. If you do not see any teams, please contact your Proxy Admin to either provide you with access to models or to add you to a team."

Fix Action

Fix / Workaround

In LiteLLM v1.83.14-stable.patch.2, the UI incorrectly forces users to select a team when creating virtual keys, even when:

  • User has Internal User role
  • User has models directly assigned
  • User is a member of teams with model access
  • API endpoint /key/generate works correctly without team_id

Environment

  • LiteLLM Version: v1.83.14-stable.patch.2
  • User Role: Internal User (Create/Delete/View)
  • Models assigned to user: Yes (all proxy models)
  • Team membership: Yes
  • Config: No no-default-models restriction, no key_generation_settings blocking personal keys

Workaround Use API directly:

curl -X POST 'http://proxy:4000/key/generate' \
-H 'Authorization: Bearer <session-token>' \
-H 'Content-Type: application/json' \
-d '{"models": ["gpt-4"], "user_id": "user-id"}'

Code Example

curl -X POST 'http://proxy:4000/key/generate' \
-H 'Authorization: Bearer <session-token>' \
-H 'Content-Type: application/json' \
-d '{"models": ["gpt-4"], "user_id": "user-id"}'

---
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

In LiteLLM v1.83.14-stable.patch.2, the UI incorrectly forces users to select a team when creating virtual keys, even when:

  • User has Internal User role
  • User has models directly assigned
  • User is a member of teams with model access
  • API endpoint /key/generate works correctly without team_id

The error message shown: "Please select a team to continue configuring your Virtual Key. If you do not see any teams, please contact your Proxy Admin to either provide you with access to models or to add you to a team."

Expected Behavior Internal users with model access should be able to create personal keys (Default Team) without being forced to select a specific team.

Actual Behavior UI blocks key creation with team selection requirement, but API works fine.

Environment

  • LiteLLM Version: v1.83.14-stable.patch.2
  • User Role: Internal User (Create/Delete/View)
  • Models assigned to user: Yes (all proxy models)
  • Team membership: Yes
  • Config: No no-default-models restriction, no key_generation_settings blocking personal keys

Workaround Use API directly:

curl -X POST 'http://proxy:4000/key/generate' \
-H 'Authorization: Bearer <session-token>' \
-H 'Content-Type: application/json' \
-d '{"models": ["gpt-4"], "user_id": "user-id"}'

Steps to Reproduce

  1. Assign Internal User (Create/Delete/View) role to a user
  2. Assign models directly to the user
  3. Add user to a team with models
  4. Login as that user
  5. Go to UI → Keys → Generate Key
  6. Observe forced team selection requirement

Relevant log output

What part of LiteLLM is this about?

UI Dashboard

What LiteLLM version are you on ?

v1.83.14-stable.patch.2

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING