fix: set temperature=0.0 for WriteCodeByGenerate.

This commit is contained in:
刘棒棒 2023-11-30 17:10:36 +08:00
parent 9d49caa8cc
commit 870ece45b2

View file

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