From 481e6089031b97d48354489a08eee4d42c9dd1a5 Mon Sep 17 00:00:00 2001 From: Juan Camilo Date: Wed, 1 Apr 2026 17:04:42 +0200 Subject: [PATCH] fix: show OpenAI/Gemini provider info in /status panel The /status panel showed 'undefined' for the API provider label when using OpenAI or Gemini providers, and did not display the base URL or model name. Added provider labels and property sections for both. Relates to #39 Co-Authored-By: Juan Camilo --- src/utils/status.tsx | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/utils/status.tsx b/src/utils/status.tsx index 2cc221b5..bc159cdb 100644 --- a/src/utils/status.tsx +++ b/src/utils/status.tsx @@ -244,7 +244,9 @@ export function buildAPIProviderProperties(): Property[] { const providerLabel = { bedrock: 'AWS Bedrock', vertex: 'Google Vertex AI', - foundry: 'Microsoft Foundry' + foundry: 'Microsoft Foundry', + openai: 'OpenAI-compatible', + gemini: 'Google Gemini', }[apiProvider]; properties.push({ label: 'API provider', @@ -320,6 +322,36 @@ export function buildAPIProviderProperties(): Property[] { value: 'Microsoft Foundry auth skipped' }); } + } else if (apiProvider === 'openai') { + const openaiBaseUrl = process.env.OPENAI_BASE_URL; + if (openaiBaseUrl) { + properties.push({ + label: 'OpenAI base URL', + value: openaiBaseUrl + }); + } + const openaiModel = process.env.OPENAI_MODEL; + if (openaiModel) { + properties.push({ + label: 'Model', + value: openaiModel + }); + } + } else if (apiProvider === 'gemini') { + const geminiBaseUrl = process.env.GEMINI_BASE_URL; + if (geminiBaseUrl) { + properties.push({ + label: 'Gemini base URL', + value: geminiBaseUrl + }); + } + const geminiModel = process.env.GEMINI_MODEL; + if (geminiModel) { + properties.push({ + label: 'Model', + value: geminiModel + }); + } } const proxyUrl = getProxyUrl(); if (proxyUrl) {