fix: workflow as tool garbled (#4707)

This commit is contained in:
Yeuoly 2024-05-28 14:51:42 +08:00 committed by GitHub
parent b7f81f0999
commit e198bc9b9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ class WorkflowTool(Tool):
for file in files:
result.append(self.create_file_var_message(file))
result.append(self.create_text_message(json.dumps(outputs)))
result.append(self.create_text_message(json.dumps(outputs, ensure_ascii=False)))
return result