This commit is contained in:
Timothy Jaeryang Baek
2026-08-13 18:13:43 -06:00
parent 2c01d59335
commit 4465f52a3e
6 changed files with 467 additions and 10 deletions
+4
View File
@@ -47,6 +47,7 @@ from open_webui.models.tools import Tools
from open_webui.models.users import UserModel
from open_webui.tools.builtin import (
add_memory,
ask_user,
calculate_timestamp,
create_automation,
create_calendar_event,
@@ -583,6 +584,9 @@ async def get_builtin_tools(
if is_builtin_tool_enabled('time'):
builtin_functions.extend([get_current_timestamp, calculate_timestamp])
if is_builtin_tool_enabled('user_input'):
builtin_functions.append(ask_user)
metadata = extra_params.get('__metadata__') or {}
chat_files = metadata.get('files') or extra_params.get('__files__') or []
has_chat_files = any(