From ada02f2e093875aa4de2ede1eeb4e5f7f048d052 Mon Sep 17 00:00:00 2001 From: willy Date: Wed, 4 Sep 2024 15:49:12 +0900 Subject: [PATCH] feat: fix gitignore --- .../src/review/prompt/constructPrompt/constructPrompt.ts | 6 +----- packages/code-review-gpt/src/review/prompt/prompts.ts | 4 ++-- 2 files changed, 3 insertions(+), 7 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 2cb1627..0e70f93 100644 --- a/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts +++ b/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts @@ -42,9 +42,5 @@ export const constructPromptsArray = ( return languageToInstructionPrompt + JSON.stringify(payload); }); - const answerLanguage = process.env.LANGUAGE - ? `, 그리고 앞의 질문에 한글로 답해줘,` - : ''; - - return [...prompts, answerLanguage]; + return prompts; }; diff --git a/packages/code-review-gpt/src/review/prompt/prompts.ts b/packages/code-review-gpt/src/review/prompt/prompts.ts index d7bc9f4..7847830 100644 --- a/packages/code-review-gpt/src/review/prompt/prompts.ts +++ b/packages/code-review-gpt/src/review/prompt/prompts.ts @@ -29,7 +29,7 @@ Format the response in a valid JSON format as a list of feedbacks, where the val } } -The filenames and file contents to review are provided below as a list of JSON objects: +The filenames and file contents to review are provided below as a list of JSON objects(Answer me in Korean): `; @@ -68,6 +68,6 @@ Format the response in a valid JSON format as a list of feedbacks, where the val } } -The code to review is provided below: +The code to review is provided below(Answer me in Korean): `;