Disable OpenWebUI follow-up generation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user