diff --git a/backend/open_webui/utils/automations.py b/backend/open_webui/utils/automations.py index c826dd5742..a2342f094b 100644 --- a/backend/open_webui/utils/automations.py +++ b/backend/open_webui/utils/automations.py @@ -273,7 +273,7 @@ async def _resolve_model_features(app, model_id: str) -> dict: # code_interpreter is excluded: it requires the frontend event emitter # and does not work in headless backend execution. feature_checks = { - 'web_search': await Config.get('rag.web.search.enable'), + 'web_search': await Config.get('web.search.enable'), 'image_generation': await Config.get('image_generation.enable'), } diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 9aba0b57e6..3f3455d255 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -476,7 +476,7 @@ async def get_builtin_tools( # Helper to check user-level feature permission (admins always pass) user = extra_params.get('__user__', {}) config = await Config.get_many( - 'rag.web.search.enable', + 'web.search.enable', 'image_generation.enable', 'images.edit.enable', 'code_interpreter.enable', @@ -569,7 +569,7 @@ async def get_builtin_tools( # Add web search tools if builtin category enabled AND enabled globally AND model has web_search capability if ( is_builtin_tool_enabled('web_search') - and config.get('rag.web.search.enable') + and config.get('web.search.enable') and get_model_capability('web_search') and features.get('web_search') and await has_user_permission('web_search') diff --git a/src/lib/apis/retrieval/index.ts b/src/lib/apis/retrieval/index.ts index ffab406409..dccb5950b3 100644 --- a/src/lib/apis/retrieval/index.ts +++ b/src/lib/apis/retrieval/index.ts @@ -58,6 +58,7 @@ type RAGConfigForm = { chunk?: ChunkConfigForm; content_extraction?: ContentExtractConfigForm; web_loader_ssl_verification?: boolean; + web?: Record; youtube?: YoutubeConfigForm; };