Skip to content

Commit

Permalink
fix(settings): ollama url
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobrauchtgit committed Mar 14, 2024
1 parent 016abe6 commit da0fac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions src/controller/Ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit da0fac8

Please sign in to comment.