pull-pal/llm/prompts/comment-diff-request.tmpl
Moby von Briesen dfef07a1c0 some changes
make some unnecessary logging debug logs
add some randomness into branch name
create directories as necessary if they don't exist
2023-05-15 19:23:36 -04:00

35 lines
852 B
Cheetah

File:
- name: {{ .File.Path }}:
contents:
```
{{ .File.Contents }}
```
Diff:
```
{{ .Diff }}
```
Comment:
{{ .Contents }}
The above is information about a comment left on a file. The diff contains information about the precise location of the comment.
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", starting with "Q".
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", starting with "R".
Response Template A:
Q
[your answer]
Response Template B:
R
Files:
ppname: {{ .File.Path }}
ppcontents:
[new {{ .File.Path }} contents]
ppresponse:
[additional context about your changes]