mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
This commit is contained in:
parent
34cd3d79e8
commit
173d5631ca
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ def get_builtin_tools(
|
|||
if is_builtin_tool_enabled("knowledge"):
|
||||
if model_knowledge:
|
||||
# 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:
|
||||
# No model knowledge - allow full KB browsing
|
||||
builtin_functions.extend(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue