From 30182d77cc3132fc74eb3cd2e80a7b4982cfef25 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 15 Feb 2025 19:08:07 -0800 Subject: [PATCH] refac --- backend/open_webui/config.py | 10 +++++++ .../components/admin/Settings/General.svelte | 27 +++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index d7e3e5973..039602654 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -650,6 +650,16 @@ if CUSTOM_NAME: pass +#################################### +# LICENSE_KEY +#################################### + +LICENSE_KEY = PersistentConfig( + "LICENSE_KEY", + "license.key", + os.environ.get("LICENSE_KEY", ""), +) + #################################### # STORAGE PROVIDER #################################### diff --git a/src/lib/components/admin/Settings/General.svelte b/src/lib/components/admin/Settings/General.svelte index 7df2678eb..635ae3488 100644 --- a/src/lib/components/admin/Settings/General.svelte +++ b/src/lib/components/admin/Settings/General.svelte @@ -167,14 +167,14 @@ -
+
{$i18n.t('Help')}
- Learn how to use Open WebUI and get help from the community. + {$i18n.t('Discover how to use Open WebUI and seek support from the community.')}
@@ -212,6 +212,29 @@
+ +
+ +