PyreGPT (Python Remembers GPT) is a Python CLI using the OpenAI API.
- Remembers conversations.
- Capable of having more than one conversation.
-
Clone the repository, or download and extract it.
-
Install the dependencies using
pip install -r requirements.txt
. -
Create a
.env
file and type in the following:key = YOUR_OPENAI_KEY
-
Run the following command:
py pyre.py <-q QUERY_HERE> [-c CONVO_HERE]
First create a file in the channels/
folder called <CONVERSATION_NAME>.json
, and when using the CLI, use the -c <CONVERSATION_NAME>.json
option.
No.
- Create a new channel.
- Type in the following:
{"ctx": [{"role": "system", "content": "YOUR_PROMPT_HERE"}]}