From be1f16bf92e2111312409c2228dc4330cb7b89b7 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Fri, 12 Jul 2024 13:39:29 +0800 Subject: [PATCH 1/2] update: CR --- metagpt/ext/cr/actions/code_review.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metagpt/ext/cr/actions/code_review.py b/metagpt/ext/cr/actions/code_review.py index 6d1519867..79210e5a3 100644 --- a/metagpt/ext/cr/actions/code_review.py +++ b/metagpt/ext/cr/actions/code_review.py @@ -78,8 +78,7 @@ CODE_REVIEW_COMFIRM_TEMPLATE = """ ## Your Task: 1. First, check if the code meets the requirements and does not violate any defects. If it meets the requirements and does not violate any defects, print `False` and do not proceed with further judgment. -2. Then, check if the "Code Review Comments" meets "Description of Defects".If they don't meet,print `False` and do not proceed with further judgment. -3. If the check in step 1 and step 2 do not print `False`, proceed to further judgment. Based on the "Reference Example for Judgment" provided, determine if the "Code" and "Code Review Comments" match. If they match, print `True`; otherwise, print `False`. +3. Based on the `Reference Example for Judgment` provided, determine if the `Code` and `Code Review Comments` match. If they match, print `True`; otherwise, print `False`. Note: Your output should only be `True` or `False` without any explanations. """ From 7d22d8f872edbcb563dd3b389a3e161c97c271b8 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Fri, 12 Jul 2024 13:40:25 +0800 Subject: [PATCH 2/2] update: CR --- metagpt/ext/cr/actions/code_review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/ext/cr/actions/code_review.py b/metagpt/ext/cr/actions/code_review.py index 79210e5a3..db9893aee 100644 --- a/metagpt/ext/cr/actions/code_review.py +++ b/metagpt/ext/cr/actions/code_review.py @@ -78,7 +78,7 @@ CODE_REVIEW_COMFIRM_TEMPLATE = """ ## Your Task: 1. First, check if the code meets the requirements and does not violate any defects. If it meets the requirements and does not violate any defects, print `False` and do not proceed with further judgment. -3. Based on the `Reference Example for Judgment` provided, determine if the `Code` and `Code Review Comments` match. If they match, print `True`; otherwise, print `False`. +2. Based on the `Reference Example for Judgment` provided, determine if the `Code` and `Code Review Comments` match. If they match, print `True`; otherwise, print `False`. Note: Your output should only be `True` or `False` without any explanations. """