Эх сурвалжийг харах

fix: workflow as tool garbled (#4707)

Yeuoly 11 сар өмнө
parent
commit
e198bc9b9a

+ 1 - 1
api/core/tools/tool/workflow_tool.py

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