From 41f123c355de5896508da625d856d7b560aaa36a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 8 May 2026 04:20:30 +0200 Subject: [PATCH] auto-git: [change] concept_api.py --- concept_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/concept_api.py b/concept_api.py index 5ee480f..960e68e 100644 --- a/concept_api.py +++ b/concept_api.py @@ -1163,7 +1163,10 @@ def save_settings(settings: Dict[str, str]) -> None: def list_models() -> List[str]: try: - res = subprocess.run(["ollama", "list"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, timeout=8) + ollama = resolve_command("ollama") + if not ollama: + return [] + res = subprocess.run([ollama, "list"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, timeout=8, env=subprocess_env()) if res.returncode != 0: return [] lines = [ln.strip() for ln in (res.stdout or "").splitlines()]