🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix empty code when aask_code not returning language
yzlinee4aba206e80
diff --git a/metagpt/roles/ci/code_interpreter.py b/metagpt/roles/ci/code_interpreter.pyindex 796abba04..404c93b81 100644--- a/metagpt/roles/ci/code_interpreter.py+++ b/metagpt/roles/ci/code_interpreter.py@@ -72,11 +72,7 @@ class CodeInterpreter(Role):if ReviewConst.CHANGE_WORDS[0] in review:counter = 0 # redo the task again with help of human suggestions- py_code = (- code["code"] if code.get("language") == "python" else ""- ) # use python code as final code; for markdown, return the rendered result instead of the code itself-- return py_code, result, success+ return code["code"], result, successasync def _write_code(self):todo = WriteCodeWithoutTools() if not self.use_tools else WriteCodeWithTools(selected_tools=self.tools)