mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fix: result process bug
This commit is contained in:
parent
0604d3bb02
commit
b36f34c144
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ class CodeReview(Action):
|
|||
system_prompt = [CODE_REVIEW_COMFIRM_SYSTEM_PROMPT.format(code_language=code_language)]
|
||||
resp = await self.llm.aask(prompt, system_msgs=system_prompt)
|
||||
if "True" in resp or "true" in resp:
|
||||
cmt["code"] = get_code_block_from_patch(patch, code_start_line, code_end_line)
|
||||
new_comments.append(cmt)
|
||||
except Exception:
|
||||
logger.info("False")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue