Skip to content

Commit 52ccab8

Browse files
committed
refac
1 parent f5e8d4d commit 52ccab8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

backend/open_webui/utils/middleware.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,6 @@ async def tool_call_handler(tool_call):
458458
}
459459
)
460460

461-
print(
462-
f"Tool {tool_function_name} result: {tool_result}",
463-
tool_result_files,
464-
tool_result_embeds,
465-
)
466-
467461
if tool_result:
468462
tool = tools[tool_function_name]
469463
tool_id = tool.get("tool_id", "")
@@ -491,12 +485,6 @@ async def tool_call_handler(tool_call):
491485
}
492486
)
493487

494-
# Citation is not enabled for this tool
495-
body["messages"] = add_or_update_user_message(
496-
f"\nTool `{tool_name}` Output: {tool_result}",
497-
body["messages"],
498-
)
499-
500488
if (
501489
tools[tool_function_name]
502490
.get("metadata", {})

0 commit comments

Comments
 (0)