From 86074cff6c5e08d6114a42bfba6ba0db789fdd18 Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 13 Feb 2025 12:18:21 +0000 Subject: [PATCH 1/2] fix: re-enable tool use when sending tool output --- backend/open_webui/utils/middleware.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 4d70ddd65..348c8d787 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -1608,6 +1608,7 @@ async def process_chat_response( { "model": model_id, "stream": True, + "tools" : form_data["tools"] , "messages": [ *form_data["messages"], { From e98f859a143df9554bfa84d9524f9a7c3ebcfc34 Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 13 Feb 2025 12:19:24 +0000 Subject: [PATCH 2/2] format --- backend/open_webui/utils/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 348c8d787..3d3c280f6 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -1608,7 +1608,7 @@ async def process_chat_response( { "model": model_id, "stream": True, - "tools" : form_data["tools"] , + "tools": form_data["tools"], "messages": [ *form_data["messages"], {