mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 11:07:55 -05:00
refac
This commit is contained in:
1 parent
4f6072c853
commit
0d8eac0eb5
78 files changed
+860
-756
No files matched your search
@@ -53,7 +53,7 @@ from open_webui.tools.builtin import (
|
||||
calculate_timestamp,
|
||||
create_automation,
|
||||
create_calendar_event,
|
||||
create_tasks,
|
||||
create_todos,
|
||||
create_tool,
|
||||
delegate_task,
|
||||
delete_automation,
|
||||
@@ -100,7 +100,7 @@ from open_webui.tools.builtin import (
|
||||
update_automation,
|
||||
update_calendar_event,
|
||||
update_memory,
|
||||
update_task,
|
||||
update_todo,
|
||||
view_channel_message,
|
||||
view_channel_thread,
|
||||
view_chat,
|
||||
@@ -989,8 +989,8 @@ async def get_builtin_tools(
|
||||
|
||||
# Task management - break down complex work into trackable steps
|
||||
# Task state is stored on the chats row; local/channel IDs do not have one.
|
||||
if is_builtin_tool_enabled('tasks') and is_saved_chat_id(metadata.get('chat_id')):
|
||||
builtin_functions.extend([create_tasks, update_task])
|
||||
if is_builtin_tool_enabled('todos') and is_saved_chat_id(metadata.get('chat_id')):
|
||||
builtin_functions.extend([create_todos, update_todo])
|
||||
|
||||
# Automation tools - create and manage scheduled automations from chat
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user