Demo: All of the commit messages for this project were generated by ChatGPT (except the first one). It works on any repo and setup is as quick as addi

stevecondylios/gpt-generated-commit-messages

submited by
Style Pass
2023-03-16 14:00:04

Demo: All of the commit messages for this project were generated by ChatGPT (except the first one). It works on any repo and setup is as quick as adding the function below to your bashrc or equivalent.

This obviously shouldn't be used for serious projects, but it's a fun way to play around with CHATGPT's models and save a little time on projects where you commit messages don't matter much.

Add the following code to ~/.bashrc, or ~/.zshrc, and open a new terminal window (or just copy/paste it all into a new terminal session and set the OPENAI_API_KEY environment variable in the same session):

The GPT 3.5 turbo engine is 1/5th of a cent per 1000 tokens. Ref: https://openai.com/blog/introducing-chatgpt-and-whisper-apis

This was a fun play around with ChatGPT's models, if you have suggestions/improvements, please make them via a GitHub Issue or fork this repo and make a pull request.

Leave a Comment