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" : ""} >