gct icon indicating copy to clipboard operation
gct copied to clipboard

See descriptions of functions generated using GPT-3!

Open AydinGokce opened this issue 2 years ago • 0 comments

Run gct as you normally would, but add an -s or --summarize to see natural language descriptions under each function! With this PR, you not only know which functions exist, but what they do. This supercharges your ability to read code and is a must-have for every python developer!

How to set up:

  1. Grab an API key from https://openai.com/api/
  2. Set the environment variable OPENAI_API_KEY='...'
  3. Run with python3 -m gct -i <path/to/your/file.py> -s

Keep in mind that each function summarized equals one API call over your OpenAI account. Make sure to be mindful of your usage to prevent your API calls from going over budget!

AydinGokce avatar Jan 24 '23 06:01 AydinGokce