fix(ui): wire ChatGPT into provider_map + providerLogoMap

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) <noreply@anthropic.com>
This commit is contained in:
Jason Cook 2026-04-23 10:24:26 -04:00
parent c3d29a1ded
commit 4f798c0d23

View file

@ -124,6 +124,7 @@ export const provider_map: Record<string, string> = {
BedrockMantle: "bedrock_mantle",
BYTEZ: "bytez",
Cerebras: "cerebras",
ChatGPT: "chatgpt",
CLARIFAI: "clarifai",
CLOUDFLARE: "cloudflare",
CODESTRAL: "codestral",
@ -232,6 +233,7 @@ export const providerLogoMap: Record<string, string> = {
[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`,