From be8f2c0a21d7eb3c873c085f90273dc5e6e39b3d Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Fri, 23 Oct 2026 03:50:24 +0200 Subject: [PATCH] fix: auto-generation settings show while the admin turned them off (#32973) Settings > Interface offered the title, follow-up and chat tag auto-generation switches even when the admin turned those generations off, so switching them did nothing. Each switch now only shows while its generation is on. The settings for keeping and inserting follow-up prompts stay, because they still apply to follow-ups saved in existing chats. Saved choices are kept and apply again once the admin turns the generation back on. Refs #32830 --- backend/open_webui/main.py | 6 + .../common/InterfaceSettings.svelte | 136 +++++++++--------- src/lib/stores/index.ts | 3 + 3 files changed, 80 insertions(+), 65 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index aad877271a..4ef1d79b1b 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -2348,6 +2348,9 @@ async def get_app_config(request: Request): 'code_interpreter.enable', 'image_generation.enable', 'task.autocomplete.enable', + 'task.title.enable', + 'task.follow_up.enable', + 'task.tags.enable', 'ui.enable_community_sharing', 'ui.enable_message_rating', 'ui.enable_user_webhooks', @@ -2445,6 +2448,9 @@ async def get_app_config(request: Request): 'enable_code_interpreter': config.get('code_interpreter.enable'), 'enable_image_generation': config.get('image_generation.enable'), 'enable_autocomplete_generation': config.get('task.autocomplete.enable'), + 'enable_title_generation': config.get('task.title.enable'), + 'enable_follow_up_generation': config.get('task.follow_up.enable'), + 'enable_tags_generation': config.get('task.tags.enable'), 'enable_community_sharing': config.get('ui.enable_community_sharing'), 'enable_message_rating': config.get('ui.enable_message_rating'), 'enable_user_webhooks': config.get('ui.enable_user_webhooks'), diff --git a/src/lib/components/common/InterfaceSettings.svelte b/src/lib/components/common/InterfaceSettings.svelte index 5652531fea..55a03f7db2 100644 --- a/src/lib/components/common/InterfaceSettings.svelte +++ b/src/lib/components/common/InterfaceSettings.svelte @@ -1109,82 +1109,88 @@
-+ {$i18n.t('settings.personal.interface.titleAutoGeneration.description')} +
- {$i18n.t('settings.personal.interface.titleAutoGeneration.description')} -
-+ {$i18n.t('settings.personal.interface.followUpAutoGeneration.description')} +
- {$i18n.t('settings.personal.interface.followUpAutoGeneration.description')} -
-+ {$i18n.t('settings.personal.interface.chatTagsAutoGeneration.description')} +
- {$i18n.t('settings.personal.interface.chatTagsAutoGeneration.description')} -
-