From e72add68824ed63a6aa68e18b335fc1c7ee1cad1 Mon Sep 17 00:00:00 2001 From: mubashir1osmani Date: Thu, 6 Aug 2026 15:02:48 -0700 Subject: [PATCH] fix(ui): show human labels on playground virtual key source select Base UI SelectValue renders the raw value unless children supply the label, so map session/custom to Current UI Session and Virtual Key --- .../(dashboard)/playground/components/chat_ui/ChatUI.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 43c57c23e5e..83d539688ad 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 @@ -887,7 +887,7 @@ const ChatUI: React.FC = ({ const requestProxyBaseUrl = simplified && proxySettings - ? proxySettings.LITELLM_UI_API_DOC_BASE_URL ?? proxySettings.PROXY_BASE_URL ?? undefined + ? (proxySettings.LITELLM_UI_API_DOC_BASE_URL ?? proxySettings.PROXY_BASE_URL ?? undefined) : customProxyBaseUrl || undefined; await makeOpenAIChatCompletionRequest( apiChatHistory, @@ -1235,7 +1235,7 @@ const ChatUI: React.FC = ({ }} > - + {apiKeySource === "custom" ? "Virtual Key" : "Current UI Session"} Current UI Session @@ -1342,7 +1342,10 @@ const ChatUI: React.FC = ({ - + + {OPEN_AI_VOICE_SELECT_OPTIONS.find((voice) => voice.value === selectedVoice)?.label ?? + selectedVoice} + {OPEN_AI_VOICE_SELECT_OPTIONS.map((voice) => (