This commit is contained in:
刘棒棒 2024-01-25 15:02:52 +08:00
parent 526025bbe3
commit 54a08747db

View file

@ -97,7 +97,7 @@ class CodeInterpreter(Role):
if ReviewConst.CHANGE_WORD[0] in review:
counter = 0 # redo the task again with help of human suggestions
return code["code"] if code.get("language", None) != "markdown" else "", result, success
return code["code"] if code.get("language") != "markdown" else "", result, success
async def _write_code(self):
todo = WriteCodeByGenerate() if not self.use_tools else WriteCodeWithTools(selected_tools=self.tools)