mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 13:52:38 +02:00
Merge pull request #854 from garylin2099/ci_dev
fix empty code when aask_code not returning language
This commit is contained in:
commit
ce985b8a73
1 changed files with 1 additions and 5 deletions
|
|
@ -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, success
|
||||
|
||||
async def _write_code(self):
|
||||
todo = WriteCodeWithoutTools() if not self.use_tools else WriteCodeWithTools(selected_tools=self.tools)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue