GPTerminator :robot: - ChatGPT in the Terminal!
GPTerminator provides a convenient way to interact with OpenAI's chat completion and image generation APIs using your command line interface.
Features ✨
- 🔍 Chat completion
- 💾 Save and load chat sessions
- 📊 File analysis
- 🎨 Image generation with Dalle
- 📋 Easy code and text copying using
- 🔁 Regeneration of responses
Getting Started & Installation 🚀
To use this terminal interface, follow these steps:
1) Install GPTerminator
git clone https://github.com/AineeJames/ChatGPTerminator
cd ChatGPTerminator
pip install .
or
pip install gpterminator
2) Set the OPENAI_API_KEY env variable (you may want this in your shell's .rc file):
export OPENAI_API_KEY=<YOUR_API_KEY>
3) Run the following command to start the ChatGPT terminal interface:
gpterm
4) You can now start chatting. Type a message and press Enter to get a response.
5) Type !help for a list of commands to use
Running with podman/docker (optional) 📦
Build the image and provide the APIKEY
podman build \
--build-arg APIKEY=$(echo $OPENAI_API_KEY) \
-t gpterm .
Run gpterm in the container
podman run -it --rm --name gpterm gpterm
Set an alias for easy access
echo "alias gpterm='podman run -it --rm --name gpterm gpterm'" >> ~/.bashrc
Commands ❗
- Power up you chat experience with commands!
- By typing
!helpyou can view all the possible commands along with a short description. - Please check out the wiki for more detailed help with commands!
Configuration ⚙️
The config.ini configuration resides in different locations depending on your OS. In order to find the path, run gpterm and then enter !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 =
CodeTheme =
| Setting | Description | Default |
|---|---|---|
| ModelName | this is the model used when chatting | gpt-3.5-turbo |
| Temperature | between 0 and 2 | 1 |
| PresencePenalty | between -2 and 2 | 0 |
| FrequencyPenalty | between -2 and 2 | 0 |
| SystemMessage | this is the starting system message sent to the API | You are a helpful assistant named GPTerminator |
| CommandInitiator | this can be set to change the default ! structure |
! |
| SavePath | this changes the location of the save path when loading/saving | (default save path) |
| CodeTheme | this changes the Pygments theme of code blocks | monokai |
Note More details on some settings can be found here
Note Valid color schemes can be found here
Note If you change the
CommandInitiator, you will now type<new-command>to execute commands...
After saving the config file, run gpterm, then enter !setconf and select which config you wish to use. You can also run the !pconf command to view the current config details.
Contributing 🙌
Current Contributors:
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.
Disclaimer ⚠️
Warning This program uses the OpenAI API to chat and generate images using DALL·E. It is a good idea to put a usage cap on your billing, just in case something goes wrong!
Metadata
Release files for gpterminator 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpterminator-0.1.11.tar.gz | 10.9 kB | Without provenance | Details for gpterminator-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpterminator-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for gpterminator-0.1.11-py3-none-any.whl |
Total release size: 20.7 kB
Release files / gpterminator-0.1.11.tar.gz
| Download URL | gpterminator-0.1.11.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da0be6d2138b62098e347fd09c6f310d3bde877457a7774fe606a7c4135a380e
|
|
BLAKE2b-256 checksum How to use checksums |
3b088b77b43c4fc6da2ad3aab16a3f22c1bdd28bdf9fdd2b9d01dbd99f8c23bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / gpterminator-0.1.11-py3-none-any.whl
| Download URL | gpterminator-0.1.11-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ced606ff218676b3392124bb774e89b7a6afb71a460e7146c250fd475dd3647
|
|
BLAKE2b-256 checksum How to use checksums |
ec3b4df67f626e4ddad90e9985681effa0f1f31a933e1ff8d85e727eb88842b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for gpterminator 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.