From 9951fbe5497d98f10bede814bdfc409837725ef2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 9 Jul 2026 17:37:04 -0500 Subject: [PATCH] refac --- .env.example | 2 +- backend/open_webui/utils/tools.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.env.example b/.env.example index c5b0adc4b9..6f674e6e50 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,7 @@ CORS_ALLOW_ORIGIN='*' # Set to false to keep memory tools enabled without adding memory context to the system context. ENABLE_MEMORY_SYSTEM_CONTEXT=true -# Set to false to disable built-in Python Tools and Functions plugin execution surfaces. +# Set to false to disable workspace Tools and Functions. ENABLE_PLUGINS=true # For production you should set this to match the proxy configuration (127.0.0.1) diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 6fc0f4172f..0e468ad313 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -473,9 +473,6 @@ async def get_builtin_tools( Get built-in tools for native function calling. Only returns tools when BOTH the global config is enabled AND the model capability allows it. """ - if not ENABLE_PLUGINS: - return {} - tools_dict = {} builtin_functions = [] features = features or {}