mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Litellm dev 12 31 2024 p1 (#7488)
* fix(internal_user_endpoints.py): fix team list sort - handle team_alias being set + None * fix(key_management_endpoints.py): allow team admin to create key for member via admin ui Fixes https://github.com/BerriAI/litellm/issues/7482 * fix(proxy_server.py): allow querying info on specific model group via `/model_group/info` allows client-side user to get model info from proxy * fix(proxy_server.py): add docstring on `/model_group/info` showing how to filter by model name * test(test_proxy_utils.py): add unit test for returning model group info filtered * fix(proxy_server.py): fix query param * fix(test_Get_model_info.py): handle no whitelisted bedrock modells
This commit is contained in:
parent
080de89cfb
commit
39cbd9d878
9 changed files with 124 additions and 18 deletions
|
@ -85,6 +85,11 @@ def _is_allowed_to_create_key(
|
|||
)
|
||||
|
||||
if team_id is not None:
|
||||
if (
|
||||
user_api_key_dict.team_id is not None
|
||||
and user_api_key_dict.team_id == UI_TEAM_ID
|
||||
):
|
||||
return True # handle https://github.com/BerriAI/litellm/issues/7482
|
||||
assert (
|
||||
user_api_key_dict.team_id == team_id
|
||||
), "User can only create keys for their own team. Got={}, Your Team ID={}".format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue