diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 5780de6b8..fd0223bdb 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -233,7 +233,10 @@ export default function DropdownListSidebar() { - + ) } diff --git a/web/containers/OpenAiKeyInput/index.tsx b/web/containers/OpenAiKeyInput/index.tsx index c6c6e6489..3d4a32f42 100644 --- a/web/containers/OpenAiKeyInput/index.tsx +++ b/web/containers/OpenAiKeyInput/index.tsx @@ -7,9 +7,10 @@ import { useEngineSettings } from '@/hooks/useEngineSettings' type Props = { selectedModel?: Model + serverEnabled?: boolean } -const OpenAiKeyInput: React.FC = ({ selectedModel }) => { +const OpenAiKeyInput: React.FC = ({ selectedModel, serverEnabled }) => { const [openAISettings, setOpenAISettings] = useState< { api_key: string } | undefined >(undefined) @@ -34,6 +35,7 @@ const OpenAiKeyInput: React.FC = ({ selectedModel }) => { API Key { : 'w-0 translate-x-full opacity-0' )} > - -
-
- -
- - {componentDataEngineSetting.filter( - (x) => x.name === 'prompt_template' - ).length !== 0 && ( -
- -
- {settingComponentBuilder(componentDataEngineSetting, true)} -
-
-
- )} - - {componentDataEngineSetting.length !== 0 && ( -
- -
- -
-
-
- )} +
+
+
- + + {componentDataEngineSetting.filter( + (x) => x.name === 'prompt_template' + ).length !== 0 && ( +
+ +
+ {settingComponentBuilder(componentDataEngineSetting, true)} +
+
+
+ )} + + {componentDataEngineSetting.length !== 0 && ( +
+ +
+ +
+
+
+ )} +
)