mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
f5e8d4d5a0
commit
52ccab8fc0
1 changed files with 0 additions and 12 deletions
|
|
@ -458,12 +458,6 @@ async def chat_completion_tools_handler(
|
|||
}
|
||||
)
|
||||
|
||||
print(
|
||||
f"Tool {tool_function_name} result: {tool_result}",
|
||||
tool_result_files,
|
||||
tool_result_embeds,
|
||||
)
|
||||
|
||||
if tool_result:
|
||||
tool = tools[tool_function_name]
|
||||
tool_id = tool.get("tool_id", "")
|
||||
|
|
@ -491,12 +485,6 @@ async def chat_completion_tools_handler(
|
|||
}
|
||||
)
|
||||
|
||||
# Citation is not enabled for this tool
|
||||
body["messages"] = add_or_update_user_message(
|
||||
f"\nTool `{tool_name}` Output: {tool_result}",
|
||||
body["messages"],
|
||||
)
|
||||
|
||||
if (
|
||||
tools[tool_function_name]
|
||||
.get("metadata", {})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue