leave tool_handler untouched

This commit is contained in:
landerrosette 2025-03-10 19:44:17 +08:00
parent 91b77e7f7a
commit 2ceaae0a17
1 changed files with 2 additions and 2 deletions

View File

@ -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}