- Add a
.env
file to the root of your project withOPENAI_API_KEY=
. - Obtain the key from https://platform.openai.com/api-keys.
- Even if it says you have free credit you need to buy some credit to gain access.
- To set your default prompt, edit gpt_initiation_prompt.txt.
-
Run
main.py
. -
When inputting your question or prompt, ensure it ends with a newline followed by
e
. This facilitates handling multi-line inputs in the terminal.For instance: Paste your question, press Enter, type
e
, and then press enter again. -
Once the input is parsed, "Input received." will appear in the terminal.
-
Press Enter to close the chat when you are finished.
-
To minimize disk space consumption, the 10th oldest chat will be automatically deleted.