Skip to content

Commit 4dbe6c7

Browse files
committed
refactor: update repair-diff.vm templates for both English and Chinese
- Add instruction to return only the modified code based on the original code and diff- Remove any additional content from the output
1 parent c417cbb commit 4dbe6c7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

core/src/main/resources/genius/en/code/repair-diff.vm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ Here is the original code: ${context.oldCode}
1111
Here is the failed patched context:
1212

1313
${context.patchedCode}
14+
15+
Just return code which based original code and the diff, do not add any other content.

core/src/main/resources/genius/zh/code/repair-diff.vm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ Here is the original code: ${context.oldCode}
1111
Here is the failed patched context:
1212

1313
${context.patchedCode}
14+
15+
Just return code which based original code and the diff, do not add any other content.
16+

0 commit comments

Comments
 (0)