diff --git a/web/containers/CardSidebar/index.tsx b/web/containers/CardSidebar/index.tsx index f500141f0..89ff60e66 100644 --- a/web/containers/CardSidebar/index.tsx +++ b/web/containers/CardSidebar/index.tsx @@ -22,6 +22,7 @@ interface Props { rightAction?: ReactNode title: string asChild?: boolean + isShow?: boolean hideMoreVerticalAction?: boolean } export default function CardSidebar({ @@ -30,8 +31,9 @@ export default function CardSidebar({ asChild, rightAction, hideMoreVerticalAction, + isShow, }: Props) { - const [show, setShow] = useState(false) + const [show, setShow] = useState(isShow ?? false) const [more, setMore] = useState(false) const [menu, setMenu] = useState(null) const [toggle, setToggle] = useState(null) @@ -67,8 +69,8 @@ export default function CardSidebar({ show && 'rotate-180' )} /> + {title} - {title}
{rightAction && rightAction} diff --git a/web/containers/OpenAiKeyInput/index.tsx b/web/containers/OpenAiKeyInput/index.tsx index 444c8074f..7ef97cf38 100644 --- a/web/containers/OpenAiKeyInput/index.tsx +++ b/web/containers/OpenAiKeyInput/index.tsx @@ -30,7 +30,7 @@ const OpenAiKeyInput: React.FC = () => { } return ( -
+
- +
@@ -152,6 +152,47 @@ const Sidebar: React.FC = () => {
+ +
+ + + {componentDataRuntimeSetting.length > 0 && ( +
+ +
+ +
+
+
+ )} + + {componentDataEngineSetting.filter( + (x) => x.name === 'prompt_template' + ).length !== 0 && ( +
+ +
+ x.name === 'prompt_template'} + /> +
+
+
+ )} + + {componentDataEngineSetting.length > 0 && ( +
+ +
+ +
+
+
+ )} +
+
+ {experimentalFeature && (
{activeThread?.assistants[0]?.tools && @@ -312,47 +353,6 @@ const Sidebar: React.FC = () => { )}
)} - - -
- - - {componentDataRuntimeSetting.length > 0 && ( -
- -
- -
-
-
- )} - - {componentDataEngineSetting.filter( - (x) => x.name === 'prompt_template' - ).length !== 0 && ( -
- -
- x.name === 'prompt_template'} - /> -
-
-
- )} - - {componentDataEngineSetting.length > 0 && ( -
- -
- -
-
-
- )} -
-
) diff --git a/web/screens/Settings/Advanced/index.tsx b/web/screens/Settings/Advanced/index.tsx index 635ae8611..49718120e 100644 --- a/web/screens/Settings/Advanced/index.tsx +++ b/web/screens/Settings/Advanced/index.tsx @@ -56,6 +56,8 @@ const Advanced = () => { setIgnoreSSL, proxy, setProxy, + proxyEnabled, + setProxyEnabled, } = useContext(FeatureToggleContext) const [partialProxy, setPartialProxy] = useState(proxy) const [gpuEnabled, setGpuEnabled] = useState(false) @@ -329,9 +331,13 @@ const Advanced = () => { {/* Proxy */}
-
-
+
+
HTTPS Proxy
+ setProxyEnabled(!proxyEnabled)} + />

Specify the HTTPS proxy or leave blank (proxy auto-configuration and @@ -341,6 +347,7 @@ const Advanced = () => { placeholder={'http://:@:'} value={partialProxy} onChange={onProxyChange} + className="w-2/3" />