feat: web search available is inferred from env vars

This commit is contained in:
Jun Siang Cheah
2024-05-12 15:19:52 +08:00
parent 9ed1a31575
commit d45804d7f4
6 changed files with 13 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ from config import (
SRC_LOG_LEVELS,
WEBHOOK_URL,
ENABLE_ADMIN_EXPORT,
RAG_WEB_SEARCH_ENABLED,
)
from constants import ERROR_MESSAGES
@@ -248,6 +249,7 @@ async def get_app_config():
"default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS,
"trusted_header_auth": bool(webui_app.state.AUTH_TRUSTED_EMAIL_HEADER),
"admin_export_enabled": ENABLE_ADMIN_EXPORT,
"websearch": RAG_WEB_SEARCH_ENABLED,
}