Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix: set temperature=0.0 for WriteCodeByGenerate.

刘棒棒870ece45b23d
diff --git a/metagpt/roles/ml_engineer.py b/metagpt/roles/ml_engineer.py
index 5120a9011..f5bb559e1 100644
--- a/metagpt/roles/ml_engineer.py
+++ b/metagpt/roles/ml_engineer.py
@@ -128,7 +128,7 @@ class MLEngineer(Role):
if not self.use_tools or self.plan.current_task.task_type == "":
# code = "print('abc')"
code = await WriteCodeByGenerate().run(
- context=context, plan=self.plan, task_guide=task_guide
+ context=context, plan=self.plan, task_guide=task_guide, temperature=0.0
)
cause_by = WriteCodeByGenerate
else: