diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsx index e8ef675d0..f500def6a 100644 --- a/ui/litellm-dashboard/src/components/view_key_table.tsx +++ b/ui/litellm-dashboard/src/components/view_key_table.tsx @@ -407,34 +407,54 @@ const handleEditSubmit = async (formValues: Record) => { */} - - {Array.isArray(item.models) ? ( -
- {item.models.length === 0 ? ( - <> - {selectedTeam && selectedTeam.models && selectedTeam.models.length > 0 ? ( - selectedTeam.models.map((model: string, index: number) => ( - - {model.length > 30 ? `${model.slice(0, 30)}...` : model} - - )) - ) : ( - // If selected team is None or selected team's models are empty, show all models - - all-proxy-models - - )} - - ) : ( - item.models.map((model: string, index: number) => ( - - {model.length > 30 ? `${model.slice(0, 30)}...` : model} - - )) - )} -
- ) : null} -
+ + {Array.isArray(item.models) ? ( +
+ {item.models.length === 0 ? ( + <> + {selectedTeam && selectedTeam.models && selectedTeam.models.length > 0 ? ( + selectedTeam.models.map((model: string, index: number) => ( + model === "all-proxy-models" ? ( + + All Proxy Models + + ) : model === "all-team-models" ? ( + + All Team Models + + ) : ( + + {model.length > 30 ? `${model.slice(0, 30)}...` : model} + + ) + )) + ) : ( + // If selected team is None or selected team's models are empty, show all models + + all-proxy-models + + )} + + ) : ( + item.models.map((model: string, index: number) => ( + model === "all-proxy-models" ? ( + + All Proxy Models + + ) : model === "all-team-models" ? ( + + All Team Models + + ) : ( + + {model.length > 30 ? `${model.slice(0, 30)}...` : model} + + ) + )) + )} +
+ ) : null} +