From 0c532e528ca3476b2d24b9f388820a740a465bac Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 30 Nov 2023 11:39:30 -0500 Subject: [PATCH] don't show OpenAI Base URL setting on hosted version --- frontend/src/components/SettingsDialog.tsx | 38 ++++++++++++---------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/SettingsDialog.tsx b/frontend/src/components/SettingsDialog.tsx index fc2ac03..d0d0a54 100644 --- a/frontend/src/components/SettingsDialog.tsx +++ b/frontend/src/components/SettingsDialog.tsx @@ -109,24 +109,28 @@ function SettingsDialog({ settings, setSettings }: Props) { } /> - + {!IS_RUNNING_ON_CLOUD && ( + <> + - - setSettings((s) => ({ - ...s, - openAiBaseURL: e.target.value, - })) - } - /> + + setSettings((s) => ({ + ...s, + openAiBaseURL: e.target.value, + })) + } + /> + + )}