From 6bb445df3adf43b51cd200a3f9f231eeb8c09203 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 3 Jul 2026 01:54:09 +0200 Subject: [PATCH] Set default models in open-webui --- common/ollama-config.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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., ).