Skip to content

vorniches/terminalka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.