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

See descriptions of functions generated using GPT-3! #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AydinGokce
Copy link

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!

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.

None yet

1 participant