From 43c4b8e5186da388e55a35f9d4dd973d723f5392 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 18 Jan 2025 16:28:39 -0800 Subject: [PATCH] fix: ollama connections --- src/lib/components/admin/Settings/Connections.svelte | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lib/components/admin/Settings/Connections.svelte b/src/lib/components/admin/Settings/Connections.svelte index ddc19bb8f..e9d2baecd 100644 --- a/src/lib/components/admin/Settings/Connections.svelte +++ b/src/lib/components/admin/Settings/Connections.svelte @@ -86,13 +86,6 @@ (url, urlIdx) => OLLAMA_BASE_URLS.indexOf(url) === urlIdx && url !== '' ).map((url) => url.replace(/\/$/, '')); - console.log(OLLAMA_BASE_URLS); - - if (OLLAMA_BASE_URLS.length === 0) { - ENABLE_OLLAMA_API = false; - toast.info($i18n.t('Ollama API disabled')); - } - const res = await updateOllamaConfig(localStorage.token, { ENABLE_OLLAMA_API: ENABLE_OLLAMA_API, OLLAMA_BASE_URLS: OLLAMA_BASE_URLS,