mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-06 14:22:46 +02:00
add only_code arg for WriteCodeByGenerate.
This commit is contained in:
parent
10129c6ecf
commit
f3612f8123
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class MLEngineerSimple(Role):
|
|||
context = self.get_useful_memories()
|
||||
print(f"memories数量:{len(context)}")
|
||||
# print("===\n" +str(context) + "\n===")
|
||||
code = await WriteCodeByGenerate().run(context=context, temperature=0.0)
|
||||
code = await WriteCodeByGenerate().run(context=context, temperature=0.0, only_code=True)
|
||||
cause_by = WriteCodeByGenerate
|
||||
self.working_memory.add(Message(content=code, role="assistant", cause_by=cause_by))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue