Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: clean up
Louis96ad03c2108b
diff --git a/web-app/src/routes/settings/local-api-server.tsx b/web-app/src/routes/settings/local-api-server.tsxindex 2dd7d24fc..45b2146ec 100644--- a/web-app/src/routes/settings/local-api-server.tsx+++ b/web-app/src/routes/settings/local-api-server.tsx@@ -73,9 +73,6 @@ function LocalAPIServerContent() {const { providers, selectedModel, selectedProvider, getProviderByName } =useModelProvider()const [showApiKeyError, setShowApiKeyError] = useState(false)- const [, setIsApiKeyEmpty] = useState(- !apiKey || apiKey.toString().trim().length === 0- )const { activeModels } = useAppState()const setActiveModels = useAppState((state) => state.setActiveModels)@@ -108,10 +105,6 @@ function LocalAPIServerContent() {return () => window.removeEventListener('focus', handleFocus)}, [serviceHub, setServerStatus])- const handleApiKeyValidation = (isValid: boolean) => {- setIsApiKeyEmpty(!isValid)- }-const [isModelLoading, setIsModelLoading] = useState(false)const toggleAPIServer = async () => {@@ -465,7 +458,6 @@ function LocalAPIServerContent() {<ApiKeyInputisServerRunning={isServerRunning}showError={showApiKeyError}- onValidationChange={handleApiKeyValidation}/></div></div>