feat: support webui_auth false

#929
This commit is contained in:
Timothy J. Baek
2024-05-08 08:40:18 -07:00
parent 0d633c0d17
commit 01472c071b
5 changed files with 23 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ from config import (
CONFIG_DATA,
WEBUI_NAME,
WEBUI_URL,
WEBUI_AUTH,
ENV,
VERSION,
CHANGELOG,
@@ -240,6 +241,7 @@ async def get_app_config():
"status": True,
"name": WEBUI_NAME,
"version": VERSION,
"auth": WEBUI_AUTH,
"default_locale": default_locale,
"images": images_app.state.ENABLED,
"default_models": webui_app.state.DEFAULT_MODELS,