mirror of
https://github.com/open-webui/open-webui
synced 2024-12-01 16:53:24 +00:00
enh: tool __id__ param support for cache dir
This commit is contained in:
parent
6f9a31eba5
commit
dcac1a3cb7
@ -280,6 +280,13 @@ async def get_function_call_response(
|
|||||||
"__files__": files,
|
"__files__": files,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if "__id__" in sig.parameters:
|
||||||
|
# Call the function with the '__id__' parameter included
|
||||||
|
params = {
|
||||||
|
**params,
|
||||||
|
"__id__": tool_id,
|
||||||
|
}
|
||||||
|
|
||||||
function_result = function(**params)
|
function_result = function(**params)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user