You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ai/prompts.ts
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
-
exportconstgenerateCommitMessageSystemPrompt=`You are an advanced AI programming assistant`;
2
-
exportconstgenerateCommitMessageUserPrompt=`You are tasked with summarizing code changes into a concise but meaningful commit message. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative commit message that accurately represents the modifications made to the code.
1
+
exportconstgenerateCommitMessageUserPrompt=`You are an advanced AI programming assistant and are tasked with summarizing code changes into a concise but meaningful commit message. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative commit message that accurately represents the modifications made to the code.
3
2
4
3
First, examine the following code changes provided in Git diff format:
5
4
<~~diff~~>
@@ -51,8 +50,7 @@ Fixes #789
51
50
52
51
Now, based on the provided code diff and any additional context, create a concise but meaningful commit message following the instructions above.`;
53
52
54
-
exportconstgenerateCloudPatchMessageSystemPrompt=`You are an advanced AI programming assistant`;
55
-
exportconstgenerateCloudPatchMessageUserPrompt=`You are tasked with summarizing code changes into a concise and meaningful title and description. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative title and description that accurately represents the modifications made to the code.
53
+
exportconstgenerateCloudPatchMessageUserPrompt=`You are an advanced AI programming assistant and are tasked with summarizing code changes into a concise and meaningful title and description. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative title and description that accurately represents the modifications made to the code.
56
54
57
55
First, examine the following code changes provided in Git diff format:
58
56
<~~diff~~>
@@ -99,8 +97,7 @@ Integrates JWT for secure token generation
99
97
100
98
Now, based on the provided code diff and any additional context, create a concise but meaningful title and description following the instructions above.`;
101
99
102
-
exportconstgenerateCodeSuggestMessageSystemPrompt=`You are an advanced AI programming assistant`;
103
-
exportconstgenerateCodeSuggestMessageUserPrompt=`You are tasked with summarizing code changes into a concise and meaningful code review title and description. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative code review title and description that accurately represents the modifications made to the code.
100
+
exportconstgenerateCodeSuggestMessageUserPrompt=`You are an advanced AI programming assistant and are tasked with summarizing code changes into a concise and meaningful code review title and description. You will be provided with a code diff and optional additional context. Your goal is to analyze the changes and create a clear, informative code review title and description that accurately represents the modifications made to the code.
104
101
105
102
First, examine the following code changes provided in Git diff format:
106
103
<~~diff~~>
@@ -147,8 +144,7 @@ Integrates JWT for secure token generation
147
144
148
145
Now, based on the provided code diff and any additional context, create a concise but meaningful code review title and description following the instructions above.`;
149
146
150
-
exportconstexplainChangesSystemPrompt=`You are an advanced AI programming assistant`;
151
-
exportconstexplainChangesUserPrompt=`You are tasked with creating clear, technical summaries of code changes that help reviewers understand the modifications and their implications. You will analyze a code diff and the author-provided message to produce a structured summary that captures the essential aspects of the changes.
147
+
exportconstexplainChangesUserPrompt=`You are an advanced AI programming assistant and are tasked with creating clear, technical summaries of code changes that help reviewers understand the modifications and their implications. You will analyze a code diff and the author-provided message to produce a structured summary that captures the essential aspects of the changes.
152
148
153
149
First, examine the following code changes provided in Git diff format:
0 commit comments