Disable OpenWebUI follow-up generation

This commit is contained in:
Mikei386
2026-08-21 14:59:42 +02:00
parent 9a40758c7f
commit 422c4fac9e
6 changed files with 21 additions and 2 deletions
+13 -1
View File
@@ -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