diff --git a/common/ollama-config.nix b/common/ollama-config.nix index 9538c59..5204afa 100644 --- a/common/ollama-config.nix +++ b/common/ollama-config.nix @@ -14,7 +14,7 @@ enable = true; port = 6767; openFirewall = false; - environment = { + environment = rec { WEBUI_AUTH = "False"; # No need for auth since it's only accessible by me OFFLINE_MODE = "True"; # Update checks & model downloads aren't needed SAFE_MODE = "True"; @@ -22,6 +22,9 @@ ENABLE_COMPRESSION_MIDDLEWARE = "False"; # Not needed since I access it via localhost OLLAMA_API_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}/v1"; # Fixes qwen 3.6 as of writing; TODO Remove if not needed anymore + DEFAULT_MODELS = builtins.concatStringsSep ", " config.services.ollama.loadModels; + DEFAULT_PINNED_MODELS = DEFAULT_MODELS; + DEFAULT_RAG_TEMPLATE = '' ### Task: Respond to the user query using the provided context, incorporating inline citations in the format [id] **only when the tag includes an explicit id attribute** (e.g., ).