mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 19:17:56 -05:00
refac
This commit is contained in:
1 parent
768a83ae78
commit
0f3bd0a7ea
7 files changed
+483
-32
No files matched your search
@@ -2879,7 +2879,9 @@ async def process_chat_payload(request, form_data, user, metadata, model):
|
||||
metadata['tools'] = tools_dict
|
||||
|
||||
if metadata.get('params', {}).get('function_calling') != 'legacy':
|
||||
deferred = await apply_tool_search(form_data, metadata, tools_dict, inlet_filter_tools)
|
||||
deferred = await apply_tool_search(
|
||||
form_data, metadata, tools_dict, inlet_filter_tools, extra_params=extra_params
|
||||
)
|
||||
|
||||
# If the function calling is native, then call the tools function calling handler
|
||||
form_data['tools'] = [
|
||||
|
||||
Reference in new issue
Block a user