Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

team req for service acc (#13302)

tanjirofd92f3eaf1b6
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<CreateKeyProps> = ({
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" : ""}
>
<TeamDropdown
teams={teams}