mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: tools param
This commit is contained in:
parent
5d8dbff486
commit
83de28bac2
1 changed files with 10 additions and 12 deletions
|
|
@ -302,8 +302,7 @@ async def generate_function_chat_completion(form_data, user):
|
|||
"role": user.role,
|
||||
},
|
||||
}
|
||||
extra_params["__tools__"] = (
|
||||
get_tools(
|
||||
extra_params["__tools__"] = get_tools(
|
||||
app,
|
||||
tool_ids,
|
||||
user,
|
||||
|
|
@ -313,7 +312,6 @@ async def generate_function_chat_completion(form_data, user):
|
|||
"__messages__": form_data["messages"],
|
||||
"__files__": files,
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
if model_info:
|
||||
|
|
|
|||
Loading…
Reference in a new issue