diff --git a/core/util/ollamaHelper.ts b/core/util/ollamaHelper.ts index 936c6339b..1e9c52490 100644 --- a/core/util/ollamaHelper.ts +++ b/core/util/ollamaHelper.ts @@ -4,7 +4,7 @@ import { exec } from "node:child_process"; export async function isOllamaInstalled(): Promise { return new Promise((resolve, _reject) => { - const command = process.platform === "win32" ? "where ollama" : "which ollama"; + const command = process.platform === "win32" ? "where.exe ollama" : "which ollama"; exec(command, (error, _stdout, _stderr) => { resolve(!error); });