Timothy Jaeryang Baek 2 months ago
parent
commit
30182d77cc
2 changed files with 35 additions and 2 deletions
  1. 10 0
      backend/open_webui/config.py
  2. 25 2
      src/lib/components/admin/Settings/General.svelte

+ 10 - 0
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
 ####################################

+ 25 - 2
src/lib/components/admin/Settings/General.svelte

@@ -167,14 +167,14 @@
 						</div>
 					</div>
 
-					<div class="">
+					<div class="mb-2">
 						<div class="flex w-full justify-between items-center">
 							<div class="text-xs">
 								<div class="">
 									{$i18n.t('Help')}
 								</div>
 								<div class=" text-xs text-gray-500">
-									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.')}
 								</div>
 							</div>
 
@@ -212,6 +212,29 @@
 							</div>
 						</div>
 					</div>
+
+					<div class="mb-2">
+						<div class="flex w-full justify-between items-center">
+							<div class="text-xs">
+								<div class="">
+									{$i18n.t('License')}
+								</div>
+								<a
+									class=" text-xs text-gray-500 underline"
+									href="https://docs.openwebui.com/enterprise"
+									target="_blank"
+								>
+									{$i18n.t(
+										'Upgrade to a licensed plan for enhanced capabilities and dedicated support.'
+									)}
+								</a>
+							</div>
+
+							<!-- <button class=" text-xs font-medium">
+								{$i18n.t('Activate')}
+							</button> -->
+						</div>
+					</div>
 				</div>
 
 				<div class="mb-3">