GPTerminator provides a convenient way to interact with OpenAI's chat completion and image generation API's using your command line interface.
- ๐ Chat completion
- ๐พ Save and load chat sessions
- ๐ File analysis
- ๐จ Image generation with Dalle
- ๐ Easy code and text copying using
- ๐ Regeneration of responses
git clone https://github.com/AineeJames/ChatGPTerminator
cd ChatGPTerminator
pip install .
or
pip install gpterminator
export OPENAI_API_KEY=PUT_API_KEY_HERE
gpterm
podman build \
--build-arg APIKEY=$(echo $OPENAI_API_KEY) \
-t gpterm .
podman run -it --rm --name gpterm gpterm
echo "alias gpterm='podman run -it --rm --name gpterm gpterm'" >> ~/.bashrc
- Power up you chat experience with commands!
- By typing
!help
you can view all the possible commands along with a short desctiption. - Please check out the wiki for more detailed help with commands!
The config.ini directory resides in different locations dependent on your OS. In order to find the path, run GPTerminator and then type !pconf
.
GPTerminator is configurable and can support multiple configurations. Add the following to your config.ini:
[CONFIG_TEMPLATE]
ModelName =
SystemMessage =
Temperature =
PresencePenalty =
FrequencyPenalty =
CommandInitiator =
SavePath =
- ModelName: this is the model used when chatting
- Temperature = between 0 and 2
- PresencePenalty = between -2 and 2
- FrequencyPenalty = between -2 and 2
- SystemMessage: this is the starting system message sent to the API
- CommandInitiator: this can be set to change the default ! structure
- SavePath: this changes the location of the save path when loading/saving
Note: More details on some settings can be found here
After saving the config file, run: gpterm
Then, type !setconf and select which config you wish to use, you can also run the !pconf commang to view the current config details.
Note: If you change the CommandInitiator, you will now type to execute commands...
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.
This program uses the openai API to chat and generate images using dalle. It is a good idea to put a usage cap on your billing, just in case something goes wrong!