mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
enh: tool __model__ param support
This commit is contained in:
parent
dcac1a3cb7
commit
dad7af6de1
1 changed files with 7 additions and 0 deletions
|
|
@ -280,6 +280,13 @@ async def get_function_call_response(
|
|||
"__files__": files,
|
||||
}
|
||||
|
||||
if "__model__" in sig.parameters:
|
||||
# Call the function with the '__model__' parameter included
|
||||
params = {
|
||||
**params,
|
||||
"__model__": model,
|
||||
}
|
||||
|
||||
if "__id__" in sig.parameters:
|
||||
# Call the function with the '__id__' parameter included
|
||||
params = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue