From 9962d122c9985ad5f135eb6547451932545f0191 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 31 Aug 2026 00:46:34 -0400 Subject: [PATCH] refac --- backend/open_webui/routers/configs.py | 2 +- backend/open_webui/routers/retrieval.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/configs.py b/backend/open_webui/routers/configs.py index dd0cbf4f73..3e37f05eef 100644 --- a/backend/open_webui/routers/configs.py +++ b/backend/open_webui/routers/configs.py @@ -731,7 +731,7 @@ async def set_code_execution_config( class ModelsConfigForm(BaseModel): DEFAULT_MODELS: str | None DEFAULT_PINNED_MODELS: str | None - MODEL_ORDER_LIST: list[str | None] + MODEL_ORDER_LIST: list[str] | None DEFAULT_MODEL_METADATA: dict | None = None DEFAULT_MODEL_PARAMS: dict | None = None diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index e0afd63fd0..6833d491db 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -790,7 +790,7 @@ class WebConfig(BaseModel): WEB_SEARCH_TRUST_ENV: bool | None = None WEB_SEARCH_RESULT_COUNT: int | None = None WEB_SEARCH_CONCURRENT_REQUESTS: int | None = None - WEB_SEARCH_DOMAIN_FILTER_LIST: list[str | None] = [] + WEB_SEARCH_DOMAIN_FILTER_LIST: list[str] | None = [] WEB_FETCH_MAX_CONTENT_LENGTH: int | None = None WEB_LOADER_CONCURRENT_REQUESTS: int | None = None BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL: bool | None = None