This commit is contained in:
Timothy Jaeryang Baek
2026-07-27 19:39:36 -04:00
parent b6b16d5871
commit 810378c0b8
93 changed files with 440 additions and 12 deletions
+12 -3
View File
@@ -320,6 +320,9 @@ https://github.com/open-webui/open-webui
print(banner)
except UnicodeEncodeError:
# Stdout can't encode the box-drawing banner (Windows cp1252, redirected/headless stdout); fall back to ASCII.
# LICENSE covers this Open WebUI CLI identifier.
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
# https://docs.openwebui.com/license.
print(f'Open WebUI v{VERSION} - building the best AI user interface.\nhttps://github.com/open-webui/open-webui')
@@ -461,6 +464,9 @@ async def lifespan(app: FastAPI):
# response_model routes keep FastAPI's Pydantic fast path either way.
apply_orjson_http_json()
# LICENSE covers this Open WebUI API metadata identifier.
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
# https://docs.openwebui.com/license.
app = FastAPI(
title='Open WebUI',
docs_url='/docs' if ENV == 'dev' else None,
@@ -483,7 +489,8 @@ app.state.oauth_client_manager = oauth_client_manager
app.state.instance_id = None
app.state.redis = None
# LICENSE covers this Open WebUI name/logo/identifier.
# LICENSE covers this Open WebUI branding surface, including name, logo,
# visual, textual, symbolic identifiers, metadata, and surrounding UI.
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
# https://docs.openwebui.com/license.
app.state.WEBUI_NAME = WEBUI_NAME
@@ -2691,7 +2698,8 @@ async def oauth_backchannel_logout(
async def get_manifest_json():
external_pwa_manifest_url = getattr(app.state, 'EXTERNAL_PWA_MANIFEST_URL', None)
if external_pwa_manifest_url:
# LICENSE covers install-time Open WebUI branding.
# LICENSE covers this install-time Open WebUI branding surface, including
# names, logos, manifests, metadata, and surrounding UI.
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
# https://docs.openwebui.com/license.
session = await get_session()
@@ -2702,7 +2710,8 @@ async def get_manifest_json():
r.raise_for_status()
return await r.json()
else:
# LICENSE covers generated Open WebUI install branding.
# LICENSE covers this generated Open WebUI install branding surface,
# including names, logos, manifests, metadata, and surrounding UI.
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
# https://docs.openwebui.com/license.
return {