diff --git a/frontend/src/components/Modals/Settings/Keys/index.jsx b/frontend/src/components/Modals/Settings/Keys/index.jsx index 36709c39be4af0692477e1c517b84b20d6549a63..84b75373d3e3aa7bb10f31d5233a5480dda1adfc 100644 --- a/frontend/src/components/Modals/Settings/Keys/index.jsx +++ b/frontend/src/components/Modals/Settings/Keys/index.jsx @@ -15,8 +15,8 @@ export default function SystemKeys({ hideModal = noop, user, settings = {} }) { (settings?.VectorDB === "chroma" ? !!settings?.ChromaEndpoint : true) && (settings?.VectorDB === "pinecone" ? !!settings?.PineConeKey && - !!settings?.PineConeEnvironment && - !!settings?.PineConeIndex + !!settings?.PineConeEnvironment && + !!settings?.PineConeIndex : true) ); } @@ -56,50 +56,6 @@ export default function SystemKeys({ hideModal = noop, user, settings = {} }) { valid={!!settings?.OpenAiModelPref} allowDebug={canDebug} /> - <div className="h-[2px] w-full bg-gray-200 dark:bg-stone-600" /> - <ShowKey - name="Vector DB Choice" - env="VectorDB" - value={settings?.VectorDB} - valid={!!settings?.VectorDB} - allowDebug={canDebug} - /> - {settings?.VectorDB === "pinecone" && ( - <> - <ShowKey - name="Pinecone DB API Key" - env="PineConeKey" - value={settings?.PineConeKey ? "*".repeat(20) : ""} - valid={!!settings?.PineConeKey} - allowDebug={canDebug} - /> - <ShowKey - name="Pinecone DB Environment" - env="PineConeEnvironment" - value={settings?.PineConeEnvironment} - valid={!!settings?.PineConeEnvironment} - allowDebug={canDebug} - /> - <ShowKey - name="Pinecone DB Index" - env="PineConeIndex" - value={settings?.PineConeIndex} - valid={!!settings?.PineConeIndex} - allowDebug={canDebug} - /> - </> - )} - {settings?.VectorDB === "chroma" && ( - <> - <ShowKey - name="Chroma Endpoint" - env="ChromaEndpoint" - value={settings?.ChromaEndpoint} - valid={!!settings?.ChromaEndpoint} - allowDebug={canDebug} - /> - </> - )} </div> </div> <div className="flex items-center p-6 space-x-2 border-t border-gray-200 rounded-b dark:border-gray-600"> diff --git a/frontend/src/components/Modals/Settings/index.jsx b/frontend/src/components/Modals/Settings/index.jsx index a9ce6de2ce00fabd70f74d772d64abd550591701..246b9ad3784496d18bea7b12b86fff11a000698f 100644 --- a/frontend/src/components/Modals/Settings/index.jsx +++ b/frontend/src/components/Modals/Settings/index.jsx @@ -20,8 +20,7 @@ const noop = () => false; export default function SystemSettingsModal({ hideModal = noop }) { const { user } = useUser(); const [loading, setLoading] = useState(true); - // const [selectedTab, setSelectedTab] = useState("keys"); - const [selectedTab, setSelectedTab] = useState("vectordb"); + const [selectedTab, setSelectedTab] = useState("keys"); const [settings, setSettings] = useState(null); const Component = TABS[selectedTab || "keys"];