Skip to content

Commit

Permalink
fix: update diff repair instructions in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 11, 2025
1 parent 523bb10 commit 96a1c55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/genius/en/code/repair-diff.vm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Please help me repair the diff, follow GNU unified diff format, and return all repaired code.
Please according the diff to repair the code, and return the repaired final code.

Here is the original code: ${context.oldCode}

Expand Down
8 changes: 6 additions & 2 deletions core/src/main/resources/genius/zh/code/repair-diff.vm
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Please help me repair the diff, follow GNU unified diff format, and return all repaired code.
请根据我的原始代码和失败的 patch,生成最终的完整代码。

Here is the original code: ${context.oldCode}
Here is the original code:

${context.oldCode}

Here is the patched code:

${context.patchedCode}

请返回应用 patch 后的最终代码。

0 comments on commit 96a1c55

Please sign in to comment.