From f53fb85dd75513d05fa6f1e73890684ff825e5e2 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 26 Apr 2023 23:17:30 +0900 Subject: [PATCH] refactor: improve prompt --- src/utils/openai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/openai.ts b/src/utils/openai.ts index 98596f96..ba88d002 100644 --- a/src/utils/openai.ts +++ b/src/utils/openai.ts @@ -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) => {