mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fix
This commit is contained in:
parent
2e7abe7d03
commit
58e8e4c879
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue