This repository contains Python command-line interface (CLI) and graphical user interface (GUI) clients for OpenAI's ChatGPT. The clients are designed to be simple and easy to use, with no arguments required to run the commands.
The clients depend on the following Python packages:
openai
: This package is used to interact with the OpenAI API and send requests to the ChatGPT model.
To install the dependencies, run the following command:
pip install openai
Expects .api_key
file in the repo directory with your OpenAI API key in there. Don't worry to contribute,
the filename is in .gitignore
already.
To use the CLI client, run the following command:
python cli.py
The CLI client will prompt you to enter your input. The response from ChatGPT will be printed in the console.
You can also enable multiline mode with the -m
or --multiline
option. In this mode, you can input multiple
lines and input "SEND" when you are done.
Quit with either q
, x
, exit
or quit
as the input.
Contributions are welcome! Please feel free to submit a pull request.
If you encounter any issues or have any questions, please open an issue on GitHub.