From da0fac8abc532ea6b97ae8035ad02652d476551e Mon Sep 17 00:00:00 2001 From: nicobrauchtgit Date: Thu, 14 Mar 2024 15:43:20 +0100 Subject: [PATCH] fix(settings): ollama url --- manifest.json | 2 +- src/controller/Ollama.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 6c15bbb..3cf4a0e 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "description": "Interact with your privacy focused assistant, leveraging Ollama or OpenAI, making your second brain even smarter.", "author": "Leo310, nicobrauchtgit", "authorUrl": "https://github.com/nicobrauchtgit", - "version": "0.4.0", + "version": "0.4.1", "minAppVersion": "1.5.0", "isDesktopOnly": true } diff --git a/src/controller/Ollama.ts b/src/controller/Ollama.ts index b6e48a1..b256db1 100644 --- a/src/controller/Ollama.ts +++ b/src/controller/Ollama.ts @@ -6,8 +6,8 @@ import Log from '../logging'; export async function isOllamaRunning() { const d = get(data); try { - const url = new URL(d.ollamaGenModel.baseUrl); - const response = await requestUrl(url + '/api/tags'); + new URL(d.ollamaGenModel.baseUrl); + const response = await requestUrl(d.ollamaGenModel.baseUrl + '/api/tags'); if (response.status === 200) { return true; } else {