refac
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user