From 7ff6f26b934907b1e613cd600f48c220776aeaaf 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 d1924d8c38a..8d92d59998d 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 @@ -857,7 +857,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, @@ -1205,7 +1205,7 @@ const ChatUI: React.FC = ({ }} > - + {apiKeySource === "custom" ? "Virtual Key" : "Current UI Session"} Current UI Session @@ -1331,7 +1331,10 @@ const ChatUI: React.FC = ({ }} > - + + {OPEN_AI_VOICE_SELECT_OPTIONS.find((voice) => voice.value === selectedVoice)?.label ?? + selectedVoice} + {OPEN_AI_VOICE_SELECT_OPTIONS.map((voice) => (