Skip to content

Commit

Permalink
refactor: improve prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Apr 26, 2023
1 parent ffbff91 commit f53fb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ const getPrompt = (
) => `${[
'Generate a concise git commit message written in present tense for the following code diff with the given specifications.',
`Message language: ${locale}`,
`Message max character length: ${maxLength}`,
'Do not include anything unnecessary such as the original translation—your entire response will be passed directly into git commit.',
`Max message character length: ${maxLength}`,
'Exclude anything unnecessary such as the original translation—your entire response will be passed directly into git commit.',
].join('\n')}\n\n${diff}`;

const generateStringFromLength = (length: number) => {
Expand Down

0 comments on commit f53fb85

Please sign in to comment.