address comments, rename to ENABLE_ADMIN_EXPORT

This commit is contained in:
Jun Siang Cheah
2024-04-22 19:55:46 +01:00
parent 190b934ab5
commit e2a8ad5fca
6 changed files with 11 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ from config import (
GLOBAL_LOG_LEVEL,
SRC_LOG_LEVELS,
WEBHOOK_URL,
ALLOW_ADMIN_EXPORT,
ENABLE_ADMIN_EXPORT,
)
from constants import ERROR_MESSAGES
@@ -208,7 +208,7 @@ async def get_app_config():
"default_models": webui_app.state.DEFAULT_MODELS,
"default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS,
"trusted_header_auth": bool(webui_app.state.AUTH_TRUSTED_EMAIL_HEADER),
"allow_admin_export": ALLOW_ADMIN_EXPORT,
"admin_export_enabled": ENABLE_ADMIN_EXPORT,
}