mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
fix: ollama connections
This commit is contained in:
parent
2b66a7a8dc
commit
43c4b8e518
@ -86,13 +86,6 @@
|
|||||||
(url, urlIdx) => OLLAMA_BASE_URLS.indexOf(url) === urlIdx && url !== ''
|
(url, urlIdx) => OLLAMA_BASE_URLS.indexOf(url) === urlIdx && url !== ''
|
||||||
).map((url) => url.replace(/\/$/, ''));
|
).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, {
|
const res = await updateOllamaConfig(localStorage.token, {
|
||||||
ENABLE_OLLAMA_API: ENABLE_OLLAMA_API,
|
ENABLE_OLLAMA_API: ENABLE_OLLAMA_API,
|
||||||
OLLAMA_BASE_URLS: OLLAMA_BASE_URLS,
|
OLLAMA_BASE_URLS: OLLAMA_BASE_URLS,
|
||||||
|
Loading…
Reference in New Issue
Block a user