update comment diff request prompt template

This commit is contained in:
Moby von Briesen 2023-09-04 16:38:59 -04:00
parent 322fc8d1da
commit bb2af2fce9

View File

@ -18,23 +18,18 @@ The above is information about a comment left on a file. The diff contains infor
First, determine if the comment is a question or a request for changes.
If the comment is a question, come up with an answer, and respond exactly as outlined directly below "Response Template A".
If the comment is a request, modify the file provided at the beginning of the message, and respond exactly as outlined directly below "Response Template B".
For either response template, respond in a parseable YAML format. Respond only with YAML, and nothing else.
Response Template A (Respond in a parseable JSON format):
```
{
"responseType": 0,
"response": "[your answer]"
}
```
Response Template A:
responseType: 0
response: |
[your answer]
Response Template B (Respond in a parseable JSON format):
```
{
"responseType": 1,
"file": {
"path": "{{ .File.Path }}",
"contents": "[new {{ .File.Path }} contents]"
},
"response": "[additional context about your changes]"
}
```
Response Template B:
responseType: 1
file:
path: {{ .File.Path }}
contents: |
[new {{ .File.Path }} contents]
response: |
[additional context about your changes]