Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

feat(datagen): Enhance JSON Dump in SelfInstructPipeline for Non-ASCII Character Readability (#1612)

Lei Zhangf640fb766fc7
diff --git a/camel/datagen/self_instruct/self_instruct.py b/camel/datagen/self_instruct/self_instruct.py
index 1b7646385..80a964dc1 100644
--- a/camel/datagen/self_instruct/self_instruct.py
+++ b/camel/datagen/self_instruct/self_instruct.py
@@ -361,7 +361,7 @@ class SelfInstructPipeline:
in JSON format.
"""
with open(self.data_output_path, 'w') as f:
- json.dump(self.machine_tasks, f, indent=4)
+ json.dump(self.machine_tasks, f, indent=4, ensure_ascii=False)
def generate(self):
r"""Execute the entire pipeline to generate machine instructions