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

gpt suggested fixes #48

Merged

Conversation

kylegrover
Copy link
Contributor

⚠ untested changes ⚠
after spotting the rot4d / rot3d typo I ran the whole repo through a script that just asks chatGPT to point out potential errors, then implemented its suggestions by hand. Some of these seem more obviously wrong than others, I'd recommend cherrypicking this PR and testing any changes.

for anyone curious the prompt amounted to:

"You are a code reviewer.
"Is anything obviously wrong with this code or the comments? {code inserted here} If the code looks perfect just say NOPROBLEM. If it looks suspicious, think out loud while evaluating the code. Then, if something is wrong put SUGGESTIONS: followed by the advice. If the code has no problems end with 'NOPROBLEM'"

@patriciogonzalezvivo
Copy link
Owner

Wow @kylegrover! except for some minor details this PR is spot on! thanks so much for taking the time to create the pipeline to check for errors using GPT. You kind of blew my mind with this one

@patriciogonzalezvivo patriciogonzalezvivo merged commit 5979f05 into patriciogonzalezvivo:main Mar 15, 2023
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.

2 participants