update CodeInterpreter._write_and_exec_code

This commit is contained in:
刘棒棒 2024-01-23 20:53:08 +08:00
parent 93538cc848
commit 519f22f7bb

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"], result, success
return code["code"] if code["language"] != "markdown" else "", result, success
async def _write_code(self):
todo = WriteCodeByGenerate() if not self.use_tools else WriteCodeWithTools(selected_tools=self.tools)