This repo is a python program that uses GPT-3 to answer questions about emacs the text editor.
It uses the OpenAI python API.
- Log in to OpenAI here: https://beta.openai.com/login/
- Acquire an API key here: https://beta.openai.com/account/api-keys
- Put the API key in a file called
openai_api_key
in the root of this repo. - Make a python virtual environment with your favorite environment manager (e.g. venv or conda) and install the project's dependencies in that virtual environment. For example:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
- Edit the call to the
answer_question
function at the bottom of the fileanswer-question.py
to contain the question you want to ask. - Run
python answer-question.py
to see GPT3's answer to your question.