refactor: improve prompt
This commit is contained in:
@@ -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.',
|
'Generate a concise git commit message written in present tense for the following code diff with the given specifications.',
|
||||||
`Message language: ${locale}`,
|
`Message language: ${locale}`,
|
||||||
`Message max character length: ${maxLength}`,
|
`Max message character length: ${maxLength}`,
|
||||||
'Do not include anything unnecessary such as the original translation—your entire response will be passed directly into git commit.',
|
'Exclude anything unnecessary such as the original translation—your entire response will be passed directly into git commit.',
|
||||||
].join('\n')}\n\n${diff}`;
|
].join('\n')}\n\n${diff}`;
|
||||||
|
|
||||||
const generateStringFromLength = (length: number) => {
|
const generateStringFromLength = (length: number) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user