A versatile CLI tool for managing and interacting with OpenAI chat sessions, including saving, loading, and copying conversations.
Run this command to download the CLI:
$ git clone https://github.com/grandell1234/gpt-cli-tool.git
Move into the correct folder with this:
$ cd gpt-cli-tool
Install dependencies:
$ python -m pip install openai
$ python -m pip install pyperclip
You are now ready to use it by running:
$ python3 cli.py
If you already have an API key setup in environment variables, you can skip to Instructions for use. Otherwise, you will need to open up the file in your favorite IDE where there are instructions for setting it up with an API key at the top of the file.
When you boot it up with $ python3 cli.py
the help menu appears which contains all the commands you can use with it:
Some commands contain aliases such as ?exit
working like ?quit
.
You can do ?copy all
to copy the entire conversation
Sample Conversation:
When saving conversations you can give it a name you want or it will use GPT-3.5-Turbo to generate a name for you.
This tool makes it super easy to switch out models or to save a conversation and then branch it into two separate discussions that go separate ways or that use different models.