Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Updated nexjs to v14, added code review feature #20

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

AllierByron
Copy link
Collaborator

Added a new feature to review code, GPT outputs the same code you input it but with code comments and corrections to possible errors, optimizations and so on...

New prompt for this feature was added and it's still being tuned, sometimes gpt outputs weird comments.

src/app/page.tsx Outdated
@@ -23,10 +24,12 @@ async function gptQuery(input: OpenAI.Chat.Completions.ChatCompletionMessagePara
}

const Home = () => {
const [modeUp, changeModeUp] = useState(false);
console.log(modeUp);
Copy link
Member

Choose a reason for hiding this comment

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

Remove console.log

}
}
msjs.push({ role: 'user', content: lastPrompt });
console.log(msjs);
Copy link
Member

Choose a reason for hiding this comment

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

Remove console.log

@geoperez geoperez merged commit d78044e into master Nov 15, 2023
1 check passed
@geoperez geoperez deleted the feature_code_verification branch November 15, 2023 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants