mirror of https://github.com/open-webui/open-webui
leave tool_handler untouched
This commit is contained in:
parent
91b77e7f7a
commit
2ceaae0a17
|
@ -253,8 +253,8 @@ async def chat_completion_tools_handler(
|
|||
|
||||
log.debug(f"tool_contexts: {sources}")
|
||||
|
||||
if skip_files and "files" in body:
|
||||
del body["files"]
|
||||
if skip_files and "files" in body.get("metadata", {}):
|
||||
del body["metadata"]["files"]
|
||||
|
||||
return body, {"sources": sources}
|
||||
|
||||
|
|
Loading…
Reference in New Issue