From fd92f3eaf1b639303e99700930b468fc17c855de Mon Sep 17 00:00:00 2001 From: tanjiro <56165694+NANDINI-star@users.noreply.github.com> Date: Wed, 6 Aug 2025 05:01:54 +0900 Subject: [PATCH] team req for service acc (#13302) --- ui/litellm-dashboard/src/components/create_key_button.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index a2eb75fc3c6..66bbdfb8f77 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -573,6 +573,13 @@ const CreateKey: React.FC = ({ name="team_id" initialValue={team ? team.team_id : null} className="mt-4" + rules={[ + { + required: keyOwner === "service_account", + message: "Please select a team for the service account" + } + ]} + help={keyOwner === "service_account" ? "required" : ""} >