mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +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
39a11ad272
commit
03fa654b97
9 changed files with 124 additions and 18 deletions
|
@ -370,7 +370,7 @@ async def user_info(
|
|||
|
||||
## REMOVE HASHED TOKEN INFO before returning ##
|
||||
returned_keys = _process_keys_for_user_info(keys=keys, all_teams=teams_1)
|
||||
team_list.sort(key=lambda x: (getattr(x, "team_alias", "")))
|
||||
team_list.sort(key=lambda x: (getattr(x, "team_alias", "") or ""))
|
||||
_user_info = (
|
||||
user_info.model_dump() if isinstance(user_info, BaseModel) else user_info
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue