refac
This commit is contained in:
@@ -444,7 +444,7 @@ def get_builtin_tools(
|
|||||||
if is_builtin_tool_enabled("knowledge"):
|
if is_builtin_tool_enabled("knowledge"):
|
||||||
if model_knowledge:
|
if model_knowledge:
|
||||||
# Model has attached knowledge - only allow semantic search within it
|
# Model has attached knowledge - only allow semantic search within it
|
||||||
builtin_functions.append(query_knowledge_files)
|
builtin_functions.extend([query_knowledge_files, view_knowledge_file])
|
||||||
else:
|
else:
|
||||||
# No model knowledge - allow full KB browsing
|
# No model knowledge - allow full KB browsing
|
||||||
builtin_functions.extend(
|
builtin_functions.extend(
|
||||||
|
|||||||
Reference in New Issue
Block a user