This commit is contained in:
wubinhao 2023-12-06 15:56:26 +08:00
parent 2e7abe7d03
commit 58e8e4c879
3 changed files with 6 additions and 6 deletions

View file

@ -72,6 +72,6 @@ class WriteCodeSteps(Action):
context = STRUCTURAL_CONTEXT.format(
user_requirement=user_requirement, tasks=tasks, current_task=current_task
)
print(context)
# print(context)
return context

View file

@ -11,7 +11,7 @@ from metagpt.config import CONFIG
from metagpt.provider.anthropic_api import Claude2 as Claude
from metagpt.provider.openai_api import OpenAIGPTAPI
from metagpt.provider.zhipuai_api import ZhiPuAIGPTAPI
# from metagpt.provider.spark_api import SparkAPI
from metagpt.provider.spark_api import SparkAPI
from metagpt.provider.human_provider import HumanProvider

View file

@ -123,10 +123,10 @@ class MLEngineer(Role):
# breakpoint()
if not self.use_tools or self.plan.current_task.task_type == "other":
code = "print('abc')"
# code = await WriteCodeByGenerate().run(
# context=context, plan=self.plan, code_steps=code_steps, temperature=0.0
# )
# code = "print('abc')"
code = await WriteCodeByGenerate().run(
context=context, plan=self.plan, code_steps=code_steps, temperature=0.0
)
cause_by = WriteCodeByGenerate
else:
code = await WriteCodeWithTools().run(