fix: prevent AUTODETECT model from being queried on Ollama

Signed-off-by: Fred Bricon <fbricon@gmail.com>
This commit is contained in:
Fred Bricon 2025-08-29 11:06:21 +02:00
parent 9f68638e32
commit 472c00f27c

View file

@ -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<string, string> = {