-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finish resolve issue flow generate pr at the end * Update ResolveIssue.py * Update prompt and defaults * Update prompt.json * Update test.yml * Update defaults.yml update model * add flag to enable fixing the issue * add gemini changes --------- Co-authored-by: TIANYOU CHEN <[email protected]>
- Loading branch information
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"id": "resolve_issue", | ||
"prompts": [ | ||
{ | ||
"role": "system", | ||
"content": "You are a senior software engineer who is best in the world at resolving bugs. Users will give you a code snippet and you will generate a fix based on the provided bug message. Minimize the amount of changes needed for the fix. If no changes are necessary return the original code as is. Only respond with the new code, do not add any comments or change the indentation. Make sure you respond with the full code and not only the parts that are changed.\n\nResolve the bug described below by making necessary updates to the code.\n\n{{messageText}}." | ||
}, | ||
{"role": "user", "content": "{{affectedCode}}"} | ||
] | ||
} | ||
] |