refac
This commit is contained in:
1 parent
14187b027d
commit
3bf7d569c6
1 file changed
+3
-4
@@ -297,9 +297,7 @@ async def generate_function_chat_completion(form_data, user):
|
||||
"name": user.name,
|
||||
"role": user.role,
|
||||
},
|
||||
}
|
||||
|
||||
extra_params["__tools__"] = get_tools(
|
||||
"__tools__": get_tools(
|
||||
app,
|
||||
tool_ids,
|
||||
user,
|
||||
@@ -309,7 +307,8 @@ async def generate_function_chat_completion(form_data, user):
|
||||
"__messages__": form_data["messages"],
|
||||
"__files__": files,
|
||||
},
|
||||
)
|
||||
),
|
||||
}
|
||||
|
||||
if model_info:
|
||||
if model_info.base_model_id:
|
||||
|
||||
Reference in new issue
Block a user