Set default models in open-webui

This commit is contained in:
Username404-59 2026-07-03 01:54:09 +02:00
parent 48520ade33
commit 6bb445df3a
Signed by: Username404-59
GPG Key ID: F3A1878B14F5F0D7

View File

@ -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 <source> tag includes an explicit id attribute** (e.g., <source id="1">).