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 @@

-
-
- + {#if $config?.features?.enable_title_generation} +
+
+ -
- { - toggleTitleAutoGenerate(); - }} - /> +
+ { + toggleTitleAutoGenerate(); + }} + /> +
+

+ {$i18n.t('settings.personal.interface.titleAutoGeneration.description')} +

-

- {$i18n.t('settings.personal.interface.titleAutoGeneration.description')} -

-
+ {/if} -
-
- + {#if $config?.features?.enable_follow_up_generation} +
+
+ -
- { - saveSettings({ autoFollowUps }); - }} - /> +
+ { + saveSettings({ autoFollowUps }); + }} + /> +
+

+ {$i18n.t('settings.personal.interface.followUpAutoGeneration.description')} +

-

- {$i18n.t('settings.personal.interface.followUpAutoGeneration.description')} -

-
+ {/if} -
-
- + {#if $config?.features?.enable_tags_generation} +
+
+ -
- { - saveSettings({ autoTags }); - }} - /> +
+ { + saveSettings({ autoTags }); + }} + /> +
+

+ {$i18n.t('settings.personal.interface.chatTagsAutoGeneration.description')} +

-

- {$i18n.t('settings.personal.interface.chatTagsAutoGeneration.description')} -

-
+ {/if}
diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 48fa82e15b..a33d0496d5 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -394,6 +394,9 @@ type Config = { enable_tool_servers?: boolean; enable_apps?: boolean; enable_autocomplete_generation: boolean; + enable_title_generation: boolean; + enable_follow_up_generation: boolean; + enable_tags_generation: boolean; enable_direct_connections: boolean; enable_direct_integrations?: boolean; enable_version_update_check: boolean;