Skip to content

Commit 0d42e6e

Browse files
authored
Merge pull request #126 from Cloud-Code-AI/121-return-model-name-in-output
fix: updated the code review output format
2 parents 37135fc + db87cba commit 0d42e6e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

kaizen/helpers/output.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
PR_COLLAPSIBLE_TEMPLATE = """
1515
<details>
16-
<summary>{comment}</summary>
17-
18-
##### Reason
19-
{reasoning}
20-
21-
##### Confidence
22-
{confidence}
16+
<summary>[{confidence}] -> {reasoning}</summary>
2317
</details>
2418
"""
2519

kaizen/llms/prompts.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
CODE_REVIEW_PROMPT = """
1010
You are an experienced software engineer tasked with reviewing a pull request.
11-
Your goal is to provide a comprehensive code review that evaluates the code changes, identifies potential issues or areas for improvement,
11+
Your goal is to provide a comprehensive code review that evaluates the code changes, identifies potential issues,
1212
and provides constructive feedback to the developer.
1313
1414
Using the provided information, generate a detailed code review with feedback organized as a JSON object. Only include sections with relevant feedback, omitting sections without feedback. Follow this structure:
@@ -36,8 +36,6 @@
3636
Potential section topics:
3737
- "Code Quality"
3838
- "Performance"
39-
- "Testing"
40-
- "Documentation"
4139
- "Potential Issues"
4240
- "Improvements"
4341
@@ -83,8 +81,6 @@
8381
Potential section topics:
8482
- "Code Quality"
8583
- "Performance"
86-
- "Testing"
87-
- "Documentation"
8884
- "Potential Issues"
8985
- "Improvements"
9086
@@ -107,7 +103,6 @@
107103
108104
1. Summarize the main purpose and scope of the changes.
109105
2. Highlight any significant modifications, refactoring, or new features introduced.
110-
3. Explain the motivation or rationale behind the changes.
111106
112107
Provide output in following format:
113108
{{"desc": "<PR_DESCRIPTION_IN_MARKDOWN>"}}

0 commit comments

Comments
 (0)