From 6b94f38f14625955cb906e4f64b20b69f28cd610 Mon Sep 17 00:00:00 2001 From: willy Date: Wed, 4 Sep 2024 16:06:51 +0900 Subject: [PATCH] feat: fix gitignore --- .../src/review/prompt/constructPrompt/constructPrompt.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts b/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts index 6854ad5..05157e4 100644 --- a/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts +++ b/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts @@ -39,12 +39,12 @@ export const constructPromptsArray = ( ); const answerLanguage = process.env.LANGUAGE - ? `, Answer me in ${process.env.LANGUAGE},` + ? `, Answer me in Korean, 답변은 한글로 달아줘` : ''; const prompts = promptPayloads.map((payload) => { - return languageToInstructionPrompt + JSON.stringify(payload) + answerLanguage; + return languageToInstructionPrompt + JSON.stringify(payload); }); - return prompts; + return [...prompts, answerLanguage]; };