This commit is contained in:
Timothy J. Baek 2024-04-03 20:43:55 -07:00
parent 83ad488e31
commit c89070797c
3 changed files with 4 additions and 26 deletions

View File

@ -9,7 +9,4 @@ OPENAI_API_KEY=''
# DO NOT TRACK # DO NOT TRACK
SCARF_NO_ANALYTICS=true SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true DO_NOT_TRACK=true
MANIFEST_NAME='Open WebUI'
MANIFEST_SHORT_NAME='Open WebUI'

View File

@ -424,11 +424,3 @@ WHISPER_MODEL_DIR = os.getenv("WHISPER_MODEL_DIR", f"{CACHE_DIR}/whisper/models"
AUTOMATIC1111_BASE_URL = os.getenv("AUTOMATIC1111_BASE_URL", "") AUTOMATIC1111_BASE_URL = os.getenv("AUTOMATIC1111_BASE_URL", "")
COMFYUI_BASE_URL = os.getenv("COMFYUI_BASE_URL", "") COMFYUI_BASE_URL = os.getenv("COMFYUI_BASE_URL", "")
####################################
# Manifest
####################################
MANIFEST_NAME = os.getenv("MANIFEST_NAME", "Open WebUI")
MANIFEST_SHORT_NAME = os.getenv("MANIFEST_SHORT_NAME", "Open WebUI")

View File

@ -43,8 +43,6 @@ from config import (
GLOBAL_LOG_LEVEL, GLOBAL_LOG_LEVEL,
SRC_LOG_LEVELS, SRC_LOG_LEVELS,
WEBHOOK_URL, WEBHOOK_URL,
MANIFEST_NAME,
MANIFEST_SHORT_NAME
) )
from constants import ERROR_MESSAGES from constants import ERROR_MESSAGES
@ -71,9 +69,6 @@ app.state.MODEL_FILTER_LIST = MODEL_FILTER_LIST
app.state.WEBHOOK_URL = WEBHOOK_URL app.state.WEBHOOK_URL = WEBHOOK_URL
app.state.MANIFEST_NAME = MANIFEST_NAME
app.state.MANIFEST_SHORT_NAME = MANIFEST_SHORT_NAME
origins = ["*"] origins = ["*"]
@ -275,20 +270,14 @@ async def get_app_latest_release_version():
@app.get("/manifest.json") @app.get("/manifest.json")
async def get_manifest_json(): async def get_manifest_json():
return { return {
"name": app.state.MANIFEST_NAME, "name": WEBUI_NAME,
"short_name": app.state.MANIFEST_SHORT_NAME, "short_name": WEBUI_NAME,
"start_url": "/", "start_url": "/",
"display": "standalone", "display": "standalone",
"background_color": "#343541", "background_color": "#343541",
"theme_color": "#343541", "theme_color": "#343541",
"orientation": "portrait-primary", "orientation": "portrait-primary",
"icons": [ "icons": [{"src": "/favicon.png", "type": "image/png", "sizes": "844x884"}],
{
"src": "/favicon.png",
"type": "image/png",
"sizes": "844x884"
}
]
} }