This terminal interface provides a convenient way to interact with ChatGPT using your command line interface.
To use this terminal interface, follow these steps:
-
Clone this repository to your local machine.
-
Navigate to the cloned directory using your command line interface.
-
Create a virtual environment by using the following command:
python3 -m venv venv
-
Install the pip requirements into the venv:
pip install -r requirements.txt
-
Set the OPENAI_API_KEY env variable (you may want this in your .rc file):
export OPENAI_API_KEY=PUT_API_KEY_HERE
-
Run the following command to start the ChatGPT terminal interface:
python GPTerminal.py
-
You can now start chatting. Type a message and press Enter to get a response.
-
Type !help for a list of commands to use
Currently, a couple basic configuration settings are available for GPTerminal.
[BASE_CONFIG]
ModelName = gpt-3.5-turbo
SystemMessage = You are a helpful assistant.
CommandInitiator = !
SaveFolder = saves
- ModelName: this is the model used when chatting
- SystemMessage: this is the starting system message sent to the API
- CommandInitiator: this can be set to change the default ! structure
- SaveFolder: this changes the location of the save folder when running !save
We welcome contributions to this project. If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request.