This commit is contained in:
Timothy Jaeryang Baek
2025-04-05 05:38:46 -06:00
parent e570a98bf7
commit 56dc7c5640
2 changed files with 13 additions and 8 deletions

View File

@@ -1912,7 +1912,8 @@ async def process_chat_response(
tool_result_files = []
if isinstance(tool_result, list):
for item in tool_result:
if item.startswith("data:"):
# check if string
if isinstance(item, str) and item.startswith("data:"):
tool_result_files.append(item)
tool_result.remove(item)