resolve Ollama string strict num_ctx

resolves #5081
This commit is contained in:
Timothy Carambat 2026-02-27 09:20:48 -08:00
parent d58ff0ea3e
commit fc29461718

View File

@ -172,7 +172,7 @@ class OllamaAILLM {
this.#slog( this.#slog(
"No context windows cached - Context window may be inaccurately reported." "No context windows cached - Context window may be inaccurately reported."
); );
return process.env.OLLAMA_MODEL_TOKEN_LIMIT || 4096; return Number(process.env.OLLAMA_MODEL_TOKEN_LIMIT) || 4096;
} }
let userDefinedLimit = null; let userDefinedLimit = null;