mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix
This commit is contained in:
parent
9186abf9c1
commit
a3089e0472
1 changed files with 5 additions and 4 deletions
|
|
@ -301,7 +301,9 @@ async def generate_function_chat_completion(form_data, user):
|
||||||
"name": user.name,
|
"name": user.name,
|
||||||
"role": user.role,
|
"role": user.role,
|
||||||
},
|
},
|
||||||
"__tools__": get_tools(
|
}
|
||||||
|
extra_params["__tools__"] = (
|
||||||
|
get_tools(
|
||||||
app,
|
app,
|
||||||
tool_ids,
|
tool_ids,
|
||||||
user,
|
user,
|
||||||
|
|
@ -312,9 +314,8 @@ async def generate_function_chat_completion(form_data, user):
|
||||||
"__files__": files,
|
"__files__": files,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
}
|
)
|
||||||
|
|
||||||
|
|
||||||
if model_info:
|
if model_info:
|
||||||
if model_info.base_model_id:
|
if model_info.base_model_id:
|
||||||
form_data["model"] = model_info.base_model_id
|
form_data["model"] = model_info.base_model_id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue