Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: testing differents prompts #21

Closed
wants to merge 1 commit into from
Closed

feat: testing differents prompts #21

wants to merge 1 commit into from

Conversation

emanuel-braz
Copy link
Owner

No description provided.

@@ -77,10 +77,11 @@ async function analyzeCode(parsedDiff, prDetails) {
}

function createMessages(file, chunk, prDetails) {
const instructionJsonFormat = `- Always provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]`;
const instructionJsonFormat = `You are a senior software engineer and your task is to review pull requests for possible bugs.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'instructionJsonFormat' seems to have incorrect content. It should contain the instructions for providing suggestions in JSON format, but it currently contains the description of the task. Please update the content of 'instructionJsonFormat'.

const instructionJsonFormat = `- Always provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]`;
const instructionJsonFormat = `You are a senior software engineer and your task is to review pull requests for possible bugs.
You will provide suggestions only if there are issues or bugs in the code, otherwise return an empty array "[]".
If there are suggestions, so you must respond in JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'contentSystemMessage' seems to have incorrect content. It should contain the instructions for providing suggestions, but it currently contains the description of the task. Please update the content of 'contentSystemMessage'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant