mirror of
https://github.com/open-webui/open-webui
synced 2025-06-04 03:37:35 +00:00
refac
This commit is contained in:
parent
39ea59edc8
commit
a4747c88e0
@ -71,9 +71,8 @@ def override_static(path: str, content: str):
|
|||||||
def get_license_data(app, key):
|
def get_license_data(app, key):
|
||||||
if key:
|
if key:
|
||||||
try:
|
try:
|
||||||
# https://api.openwebui.com
|
|
||||||
res = requests.post(
|
res = requests.post(
|
||||||
"http://localhost:5555/api/v1/license",
|
"https://api.openwebui.com/api/v1/license",
|
||||||
json={"key": key, "version": "1"},
|
json={"key": key, "version": "1"},
|
||||||
timeout=5,
|
timeout=5,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user