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 0e70f93..17f4ab3 100644 --- a/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts +++ b/packages/code-review-gpt/src/review/prompt/constructPrompt/constructPrompt.ts @@ -42,5 +42,9 @@ export const constructPromptsArray = ( return languageToInstructionPrompt + JSON.stringify(payload); }); - return prompts; + const answerLanguage = process.env.LANGUAGE + ? `Answer me in ${process.env.LANGUAGE},` + : ''; + + return [...prompts, answerLanguage]; };