Skip to content

Commit

Permalink
feat: fix gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
willy-dunamu committed Sep 4, 2024
1 parent bfba493 commit 56a7739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ export const constructPromptsArray = (
getLanguageName(files[0].fileName) //assume the first file is representative of the language
);

const answerLanguage = process.env.LANGUAGE
? `, Answer me in ${process.env.LANGUAGE},`
: '';

const prompts = promptPayloads.map((payload) => {
return languageToInstructionPrompt + JSON.stringify(payload);
return languageToInstructionPrompt + JSON.stringify(payload) + answerLanguage;
});

return prompts;
Expand Down
2 changes: 1 addition & 1 deletion packages/code-review-gpt/src/review/prompt/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, Answer me in Korean:
The filenames and file contents to review are provided below as a list of JSON objects:
`;

Expand Down

0 comments on commit 56a7739

Please sign in to comment.