From 472c00f27cfdcd01aac12808424ba37b5590898f Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Fri, 29 Aug 2025 11:06:21 +0200 Subject: [PATCH] fix: prevent AUTODETECT model from being queried on Ollama Signed-off-by: Fred Bricon --- core/llm/llms/Ollama.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index d08bf7bc6..1d069ff71 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -150,7 +150,7 @@ class Ollama extends BaseLLM implements ModelInstaller { constructor(options: LLMOptions) { super(options); - if (options.isFromAutoDetect) { + if (options.model === "AUTODETECT") { return; } const headers: Record = {