(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:
Ishaan Jaff 2025-02-11 16:18:43 -08:00 committed by GitHub
parent 89168d9113
commit 425f1b3976
6 changed files with 347 additions and 2 deletions

View file

@ -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: