mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -101,9 +101,6 @@ def get_tools(
|
|||||||
|
|
||||||
def make_tool_function(function_name, token, tool_server_data):
|
def make_tool_function(function_name, token, tool_server_data):
|
||||||
async def tool_function(**kwargs):
|
async def tool_function(**kwargs):
|
||||||
print(
|
|
||||||
f"Executing tool function {function_name} with params: {kwargs}"
|
|
||||||
)
|
|
||||||
return await execute_tool_server(
|
return await execute_tool_server(
|
||||||
token=token,
|
token=token,
|
||||||
url=tool_server_data["url"],
|
url=tool_server_data["url"],
|
||||||
|
|||||||
Reference in New Issue
Block a user