From 4f798c0d230dc70d6aac35c22903e0938d2de272 Mon Sep 17 00:00:00 2001 From: Jason Cook Date: Thu, 23 Apr 2026 10:24:26 -0400 Subject: [PATCH] fix(ui): wire ChatGPT into provider_map + providerLogoMap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The enum entry ``Providers.ChatGPT = "ChatGPT (OAuth)"`` was added but the corresponding ``provider_map["ChatGPT"]`` and ``providerLogoMap[Providers.ChatGPT]`` entries were missing. The dropdown option still renders, but: - without ``provider_map[key]``, ``custom_llm_provider`` resolves to ``undefined`` on submit (harmless for the OAuth path — we never hit that submit branch — but still inconsistent with every other provider), and - without ``providerLogoMap`` the Option icon falls through to the "first-letter div" fallback, which reads as a visual glitch. Add both. Reuses ``openai_small.svg`` since ChatGPT is an OpenAI product. Co-Authored-By: Claude Opus 4.7 (1M context) --- ui/litellm-dashboard/src/components/provider_info_helpers.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx index e176317f0c2..a70e3fa5591 100644 --- a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx +++ b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx @@ -124,6 +124,7 @@ export const provider_map: Record = { BedrockMantle: "bedrock_mantle", BYTEZ: "bytez", Cerebras: "cerebras", + ChatGPT: "chatgpt", CLARIFAI: "clarifai", CLOUDFLARE: "cloudflare", CODESTRAL: "codestral", @@ -232,6 +233,7 @@ export const providerLogoMap: Record = { [Providers.BedrockMantle]: `${asset_logos_folder}bedrock.svg`, [Providers.SageMaker]: `${asset_logos_folder}bedrock.svg`, [Providers.Cerebras]: `${asset_logos_folder}cerebras.svg`, + [Providers.ChatGPT]: `${asset_logos_folder}openai_small.svg`, [Providers.CLOUDFLARE]: `${asset_logos_folder}cloudflare.svg`, [Providers.CODESTRAL]: `${asset_logos_folder}mistral.svg`, [Providers.Cohere]: `${asset_logos_folder}cohere.svg`,