From 3368b7903e5feb56c008655b10884a1333e40631 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Sun, 2 Mar 2025 03:41:58 +0530 Subject: [PATCH] fix: OpenAILike api key not showing up (#1403) --- app/components/chat/BaseChat.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 12929b10..b8712202 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -413,15 +413,17 @@ export const BaseChat = React.forwardRef( apiKeys={apiKeys} modelLoading={isModelLoading} /> - {(providerList || []).length > 0 && provider && !LOCAL_PROVIDERS.includes(provider.name) && ( - { - onApiKeysChange(provider.name, key); - }} - /> - )} + {(providerList || []).length > 0 && + provider && + (!LOCAL_PROVIDERS.includes(provider.name) || 'OpenAILike') && ( + { + onApiKeysChange(provider.name, key); + }} + /> + )} )}