ersinaksar / terminalka

ChatGPT in your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terminalka

A simple way to use OpenAI gpt-4 API in your terminal.

Usage

  1. Make sure you have Python 3 installed.
  2. Clone this repository.
  3. Install the required libraries by running pip install -r requirements.txt.
  4. Copy the .env.example file to .env and fill in the required values OR enter your API key in terminal after launch.
  5. Run python main.py in your terminal.
  6. Start chatting!

Note

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.

Contributing

If you find a bug or have an idea for a new feature, please open an issue or pull request on the GitHub repository.

License

The terminalka is released under the MIT License.

About

ChatGPT in your terminal.

License:MIT License


Languages

Language:Python 97.4%Language:Shell 2.6%