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]

fix(ui): guard null voice selection from shadcn Select

mubashir1osmani01d55b9d0fe0
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx b/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx
index 32f9ff3395b..55bd214165a 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx
@@ -1298,6 +1298,9 @@ const ChatUI: React.FC<ChatUIProps> = ({
<ShadcnSelect
value={selectedVoice}
onValueChange={(value) => {
+ if (value == null) {
+ return;
+ }
setSelectedVoice(value);
sessionStorage.setItem("selectedVoice", value);
}}