mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
update return value.
This commit is contained in:
parent
ff5e7deb21
commit
dfe49a3312
1 changed files with 1 additions and 1 deletions
|
|
@ -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["language"] != "markdown" else "", result, success
|
||||
return code["code"] if code.get("language", None) != "markdown" else "", result, success
|
||||
|
||||
async def _write_code(self):
|
||||
todo = WriteCodeByGenerate() if not self.use_tools else WriteCodeWithTools(selected_tools=self.tools)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue