mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-06 14:22:46 +02:00
Merge branch 'update-CodeInterpreter._write_and_exec_code' into 'code_intepreter'
update CodeInterpreter._write_and_exec_code See merge request agents/data_agents_opt!59
This commit is contained in:
commit
d60a4c1cdb
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"], 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue