refac
This commit is contained in:
1 parent
5c389ad93f
commit
9951fbe549
2 files changed
+1
-4
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ CORS_ALLOW_ORIGIN='*'
|
|||||||
# Set to false to keep memory tools enabled without adding memory context to the system context.
|
# Set to false to keep memory tools enabled without adding memory context to the system context.
|
||||||
ENABLE_MEMORY_SYSTEM_CONTEXT=true
|
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
|
ENABLE_PLUGINS=true
|
||||||
|
|
||||||
# For production you should set this to match the proxy configuration (127.0.0.1)
|
# For production you should set this to match the proxy configuration (127.0.0.1)
|
||||||
|
|||||||
@@ -473,9 +473,6 @@ async def get_builtin_tools(
|
|||||||
Get built-in tools for native function calling.
|
Get built-in tools for native function calling.
|
||||||
Only returns tools when BOTH the global config is enabled AND the model capability allows it.
|
Only returns tools when BOTH the global config is enabled AND the model capability allows it.
|
||||||
"""
|
"""
|
||||||
if not ENABLE_PLUGINS:
|
|
||||||
return {}
|
|
||||||
|
|
||||||
tools_dict = {}
|
tools_dict = {}
|
||||||
builtin_functions = []
|
builtin_functions = []
|
||||||
features = features or {}
|
features = features or {}
|
||||||
|
|||||||
Reference in new issue
Block a user