gct
gct copied to clipboard
See descriptions of functions generated using GPT-3!
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:
- Grab an API key from https://openai.com/api/
- Set the environment variable
OPENAI_API_KEY='...'
- 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!