mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(UI) allow adding model aliases for teams (#8471)
* update team info endpoint * clean up model alias * fix model alias * fix model alias card * clean up naming on docs * fix model alias card * fix _model_in_team_aliases * fix key_model_access_denied * test_can_key_call_model_with_aliases * fix test_aview_spend_per_user
This commit is contained in:
parent
89168d9113
commit
425f1b3976
6 changed files with 347 additions and 2 deletions
|
@ -1516,7 +1516,11 @@ async def list_team(
|
|||
detail={"error": CommonProxyErrors.db_not_connected_error.value},
|
||||
)
|
||||
|
||||
response = await prisma_client.db.litellm_teamtable.find_many()
|
||||
response = await prisma_client.db.litellm_teamtable.find_many(
|
||||
include={
|
||||
"litellm_model_table": True,
|
||||
}
|
||||
)
|
||||
|
||||
filtered_response = []
|
||||
if user_id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue