This commit is contained in:
Adil Hafeez 2025-02-07 18:23:37 -08:00
parent 05a63c2138
commit cd90faf50c
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -157,7 +157,7 @@ class ArchBaseHandler:
content = f"<tool_call>\n{json.dumps(tool_calls[0]['function'])}\n</tool_call>"
elif role == "tool":
role = "user"
content = f"<tool_response>\n{json.dumps(content)}\n</tool_response>"
content = f"<tool_response>\n\n</tool_response>"
processed_messages.append({"role": role, "content": content})