Merge pull request #7477 from fbricon/fix-autodetect-model-regression

fix: prevent AUTODETECT model from being queried on Ollama
This commit is contained in:
Dallin Romney 2025-09-08 16:46:49 -07:00 • committed by GitHub
commit aa79ae6835
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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> = {