mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
Set default models in open-webui
This commit is contained in:
parent
48520ade33
commit
6bb445df3a
@ -14,7 +14,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
port = 6767;
|
port = 6767;
|
||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
environment = {
|
environment = rec {
|
||||||
WEBUI_AUTH = "False"; # No need for auth since it's only accessible by me
|
WEBUI_AUTH = "False"; # No need for auth since it's only accessible by me
|
||||||
OFFLINE_MODE = "True"; # Update checks & model downloads aren't needed
|
OFFLINE_MODE = "True"; # Update checks & model downloads aren't needed
|
||||||
SAFE_MODE = "True";
|
SAFE_MODE = "True";
|
||||||
@ -22,6 +22,9 @@
|
|||||||
ENABLE_COMPRESSION_MIDDLEWARE = "False"; # Not needed since I access it via localhost
|
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
|
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 = ''
|
DEFAULT_RAG_TEMPLATE = ''
|
||||||
### Task:
|
### 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">).
|
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">).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user