From df043eb1fbc760158c90449a10eb6f7e5657d049 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 2 Apr 2024 17:38:10 -0700 Subject: [PATCH] ui neatly show all proxy models --- .../src/components/create_key_button.tsx | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index 2a3d816806..bd4fddabb3 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -145,20 +145,29 @@ const CreateKey: React.FC = ({ - {team && team.models ? ( - team.models.map((model: string) => ( - - )) - ) : ( - userModels.map((model: string) => ( - - )) - )} - + {team && team.models ? ( + team.models.includes("all-proxy-models") ? ( + userModels.map((model: string) => ( + ( + + ) + )) + ) : ( + team.models.map((model: string) => ( + + )) + ) + ) : ( + userModels.map((model: string) => ( + + )) + )}