Skip to content

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

update write_code.py

mannaandpoem3a819ad5762b
diff --git a/metagpt/actions/write_code.py b/metagpt/actions/write_code.py
index ce63968b1..33ae2e5b3 100644
--- a/metagpt/actions/write_code.py
+++ b/metagpt/actions/write_code.py
@@ -179,7 +179,7 @@ class WriteCode(Action):
doc = await old_file_repo.get(filename=filename) # 使用原始代码
else:
continue
- codes.insert(0, f"-----Now, {filename} need to be rewritten\n```{doc.content}```\n=====")
+ codes.insert(0, f"-----Now, {filename} to be rewritten\n```{doc.content}```\n=====")
else:
doc = await src_file_repo.get(filename=filename) # 使用先前生成的代码