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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ui/team): annotate effectiveGuardrails as string[] for strict typecheck
Ryan Crabbe30c2357fe3c7
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsxindex 76bd5fa4fce..5b6c716713e 100644--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx@@ -610,10 +610,10 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({const initialKillSwitchOn = info.metadata?.disable_global_guardrails === true;const optedOutGlobals = new Set<string>(info.metadata?.opted_out_global_guardrails || []);- const nonGlobalOptIns = (info.metadata?.guardrails || []).filter(+ const nonGlobalOptIns: string[] = (info.metadata?.guardrails || []).filter((n: string) => !globalGuardrailNames.has(n),);- const effectiveGuardrails = initialKillSwitchOn+ const effectiveGuardrails: string[] = initialKillSwitchOn? nonGlobalOptIns: [...Array.from(globalGuardrailNames).filter((n) => !optedOutGlobals.has(n)),