Skip to content

Commit d933991

Browse files
committed
refac
1 parent 440b640 commit d933991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/utils/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def is_builtin_tool_enabled(category: str) -> bool:
439439
builtin_functions.extend([search_chats, view_chat])
440440

441441
# Add memory tools if builtin category enabled AND enabled for this chat
442-
if is_builtin_tool_enabled('memory') and features.get('memory'):
442+
if is_builtin_tool_enabled('memory') and (features.get('memory') or get_model_capability('memory', False)):
443443
builtin_functions.extend(
444444
[
445445
search_memories,

0 commit comments

Comments
 (0)