From 422c4fac9ed73e9cca9ff3727d4fccfa00b43b73 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Fri, 21 Aug 2026 14:59:42 +0200 Subject: [PATCH] Disable OpenWebUI follow-up generation --- compose.yaml | 1 + config/install.env.example | 1 + docs/ATHENA_REBUILD_LOG.md | 1 + docs/OPERATIONS.md | 5 ++++- install.sh | 1 + platform/openwebui/install-filters.sh | 14 +++++++++++++- 6 files changed, 21 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index a74cbd0..31d9be4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -348,6 +348,7 @@ services: OPENAI_API_BASE_URLS: http://router:8081/v1 OPENAI_API_KEYS: "${ROUTER_API_KEY:?ROUTER_API_KEY is required}" ENABLE_SIGNUP: ${OPENWEBUI_ENABLE_SIGNUP:-false} + ENABLE_FOLLOW_UP_GENERATION: ${OPENWEBUI_ENABLE_FOLLOW_UP_GENERATION:-false} # Seed native MCP connections on a fresh Open WebUI database. Secrets # stay inside the tool containers, so these internal URLs need no keys. TOOL_SERVER_CONNECTIONS: >- diff --git a/config/install.env.example b/config/install.env.example index 98f77cd..0d4b424 100644 --- a/config/install.env.example +++ b/config/install.env.example @@ -54,3 +54,4 @@ LLAMA_THREADS=6 LLAMA_THREADS_BATCH=6 OPENWEBUI_IMAGE=ghcr.io/open-webui/open-webui:v0.9.5 OPENWEBUI_ENABLE_SIGNUP=false +OPENWEBUI_ENABLE_FOLLOW_UP_GENERATION=false diff --git a/docs/ATHENA_REBUILD_LOG.md b/docs/ATHENA_REBUILD_LOG.md index 25bde82..3327a1f 100644 --- a/docs/ATHENA_REBUILD_LOG.md +++ b/docs/ATHENA_REBUILD_LOG.md @@ -34,6 +34,7 @@ Chats oder privaten Nutzdaten. | Wiederholung | Ein späterer Installerlauf hätte die restaurierte OpenWebUI-Version wieder überschrieben. | Das Restore schreibt den geprüften lokalen Image-Tag auch in die dauerhafte Installationskonfiguration. | | TinySearch-Volume | Das vom Installer vorbereitete Modellvolume wurde von Compose gleichzeitig als Compose-eigen behandelt. | Das Volume besitzt einen festen Namen und ist in Compose ausdrücklich als extern vorbereitet markiert. | | Reasoning-Filter | Beide globalen Filter besaßen Priorität 0; bei gleicher Priorität entschied die ID-Sortierung statt der gewünschten Logik. | `Reasoning Default Off` läuft mit Priorität 10 sicher vor dem optionalen `Thinking`-Override mit Priorität 20. Filter und sicherer Installer liegen versioniert im Repository. | +| Folgefragen | OpenWebUI erzeugte nach Antworten zusätzliche Vorschläge und verbrauchte dafür einen weiteren Modellaufruf. | Folgefragengenerierung ist in der persistenten OpenWebUI-Konfiguration und im Compose-Standard deaktiviert. | ## Abnahmezustand am 21. August 2026 diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md index 98b43c7..c4be333 100644 --- a/docs/OPERATIONS.md +++ b/docs/OPERATIONS.md @@ -20,7 +20,10 @@ sudo /opt/mike-ai/stack/platform/openwebui/install-filters.sh Bei mehreren Administratoren muss der gewünschte Eigentümer explizit über `OPENWEBUI_FILTER_OWNER_ID` gesetzt werden. Das Skript liest oder verändert -keine Chats. +keine Chats. Es deaktiviert zugleich global die automatisch erzeugten +Folgefragen (`task.follow_up.enable=false`). Dieselbe Vorgabe steht zusätzlich +als Container-Umgebungswert im Compose-Stack, damit bereits eine frische +OpenWebUI-Datenbank ohne Folgefragen startet. ## Profile diff --git a/install.sh b/install.sh index 8559fd0..12d49ea 100755 --- a/install.sh +++ b/install.sh @@ -202,6 +202,7 @@ CONTROLLER_TOKEN=$(<$SECRETS_DIR/controller-token) WEBUI_SECRET_KEY=$(<$SECRETS_DIR/webui-secret) OPENWEBUI_IMAGE=${OPENWEBUI_IMAGE:-ghcr.io/open-webui/open-webui:v0.9.5} OPENWEBUI_ENABLE_SIGNUP=${OPENWEBUI_ENABLE_SIGNUP:-false} +OPENWEBUI_ENABLE_FOLLOW_UP_GENERATION=${OPENWEBUI_ENABLE_FOLLOW_UP_GENERATION:-false} AI_DNS=${WG_DNS:-1.1.1.1} FAST_MODEL_FILE=$FAST_MODEL_FILE MEDIUM_MODEL_FILE=$MEDIUM_MODEL_FILE diff --git a/platform/openwebui/install-filters.sh b/platform/openwebui/install-filters.sh index 7339bc6..38d137c 100755 --- a/platform/openwebui/install-filters.sh +++ b/platform/openwebui/install-filters.sh @@ -49,6 +49,9 @@ required = { } if not required <= columns: raise SystemExit("Unbekanntes OpenWebUI-Function-Schema; keine Änderung vorgenommen.") +config_columns = {row[1] for row in con.execute("pragma table_info(config)")} +if not {"key", "value", "updated_at"} <= config_columns: + raise SystemExit("Unbekanntes OpenWebUI-Config-Schema; keine Änderung vorgenommen.") owner = requested_owner if not owner: @@ -93,7 +96,16 @@ with con: json.dumps({"priority": priority}), True, True, now, now, ), ) -print("OpenWebUI-Filter installiert: Default Off=10, Thinking=20") + con.execute( + """ + insert into config (key,value,updated_at) values (?,?,?) + on conflict(key) do update set + value=excluded.value, + updated_at=excluded.updated_at + """, + ("task.follow_up.enable", "false", now), + ) +print("OpenWebUI konfiguriert: Default Off=10, Thinking=20, Folgefragen=aus") PY if [[ $was_running == true ]]; then