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