refactor: improve prompt

This commit is contained in:
Hiroki Osame
2023-04-26 23:17:30 +09:00
parent ffbff9194a
commit f53fb85dd7

View File

@@ -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) => {