refactor: gpt-3 prompt to be more concise (#57)

This commit is contained in:
hiroki osame
2023-02-16 02:52:09 -05:00
committed by GitHub
parent f45afd8d1c
commit 2f215b262d

View File

@@ -60,7 +60,7 @@ export const getStagedDiff = async () => {
export const getDetectedMessage = (files: string[]) => `Detected ${files.length.toLocaleString()} staged file${files.length > 1 ? 's' : ''}`;
const promptTemplate = 'I want you to act like a git commit message writer. I will input a git diff and your job is to convert it into a useful commit message. Do not preface the commit with anything, use the present tense, return a complete sentence, and do not repeat yourself:';
const promptTemplate = 'Write an insightful but concise Git commit message in a complete sentence in present tense for the following diff without prefacing it with anything:';
export const generateCommitMessage = async (
apiKey: string,