diff --git a/backend/main.py b/backend/main.py index 586ad27e2..d1d267ce0 100644 --- a/backend/main.py +++ b/backend/main.py @@ -361,10 +361,10 @@ async def get_app_config(): "default_locale": default_locale, "default_models": webui_app.state.config.DEFAULT_MODELS, "default_prompt_suggestions": webui_app.state.config.DEFAULT_PROMPT_SUGGESTIONS, - "feature_flags": { + "features": { "auth": WEBUI_AUTH, - "enable_signup": webui_app.state.config.ENABLE_SIGNUP, "auth_trusted_header": bool(webui_app.state.AUTH_TRUSTED_EMAIL_HEADER), + "enable_signup": webui_app.state.config.ENABLE_SIGNUP, "enable_image_generation": images_app.state.config.ENABLED, "enable_admin_export": ENABLE_ADMIN_EXPORT, "enable_community_sharing": webui_app.state.config.ENABLE_COMMUNITY_SHARING, diff --git a/src/lib/components/admin/Settings/Database.svelte b/src/lib/components/admin/Settings/Database.svelte index 87f29f4f5..3ae01a668 100644 --- a/src/lib/components/admin/Settings/Database.svelte +++ b/src/lib/components/admin/Settings/Database.svelte @@ -34,7 +34,7 @@
{$i18n.t('Database')}
- {#if $config?.feature_flags.enable_admin_export ?? true} + {#if $config?.features.enable_admin_export ?? true}
diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 05d8f0cda..c5d753b51 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -693,7 +693,7 @@ - {#if $config?.feature_flags.enable_image_generation && !readOnly} + {#if $config?.features.enable_image_generation && !readOnly}