A simple way to use OpenAI gpt-4
API in your terminal.
- Make sure you have Python 3 installed.
- Clone this repository.
- Install the required libraries by running
pip install -r requirements.txt
. - Copy the
.env.example
file to.env
and fill in the required values OR enter your API key in terminal after launch. - Run
python main.py
in your terminal. - Start chatting!
You can get your api_key by signing up on OpenAI website.
This script uses python openai
library to interact with OpenAI gpt-4
API.
The script runs an infinite loop where it takes user input and sends it to the OpenAI API and prints the response.
If you find a bug or have an idea for a new feature, please open an issue or pull request on the GitHub repository.
The terminalka
is released under the MIT License.