This is a Command Line Interface (CLI) tool that allows you to chat with the ChatGPT language model. The ChatGPT model is a large language model trained by OpenAI, based on the GPT-3.5 architecture.
This CLI tool makes it easy to quickly generate responses to any prompts you provide, making it an ideal tool for testing and exploring the capabilities of the ChatGPT model.
To use this CLI tool, you need to have the following requirements installed:
- OpenAI API key
- Python 3.x
- pip
- Go to
~/.bashrc
or~/.zshrc
depends on your shell. Add this line:
export OPENAI_API_KEY=<your_OpenAI_API_key_here>
- Clone this repository:
$ git clone https://github.com/arisuvade/commandline-chatgpt.git
- Install the required dependencies:
$ cd commandline-chatgpt
$ ./install.sh
- Activate chatgpt's environment:
$ ./activate.sh
- Run ChatGPT:
$ chatgpt
- Ask question:
$ ask "question"
- Enter your prompt and wait for the model to generate a response.
Here's an example of how to use this CLI tool:
$ chatgpt
$ ask "does AI poop?"
$ Consulting with robots...
$ "As an AI language model, I do not have a physical body or digestive system, so I don't produce waste or poop."
This project was inspired by the Beebom tutorial on how to use ChatGPT in the Linux terminal.