mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac
This commit is contained in:
@@ -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:
|
if tool_result:
|
||||||
tool = tools[tool_function_name]
|
tool = tools[tool_function_name]
|
||||||
tool_id = tool.get("tool_id", "")
|
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 (
|
if (
|
||||||
tools[tool_function_name]
|
tools[tool_function_name]
|
||||||
.get("metadata", {})
|
.get("metadata", {})
|
||||||
|
|||||||
Reference in New Issue
Block a user