This repository contains a simple command-line Python tool for interacting with OpenAI's GPT API. The tool allows users to send text inputs to the GPT API and receive responses in a conversational format. The code is written in Python and uses the OpenAI Python library to communicate with the GPT API.
- Send text inputs to the GPT API and receive responses in a conversational format
- Interactive command-line interface
- Access to help menu, version information, and exit command
- Python 3.x installed
- An OpenAI API key (sign up for an API key here)
- Clone the repository:
git clone https://github.com/Maleick/GPT-API-Interaction-Tool.git
- Enter the repository's directory:
cd GPT-API-Interaction-Tool
- Install the required Python packages:
pip install -r requirements.txt
(Replace your_api_key_here
in the key.txt with your actual API key)
-
Run the script:
python gait.py
-
Follow the on-screen instructions to interact with the GPT API.
help
- Show the help menu with available commandsversion
- Display version informationexit
- Exit the program<your_text>
- Send your text input to the GPT API and receive a response
This project is licensed under the MIT License. See the LICENSE file for details.
- Powered by OpenAI GPT-3.5-turbo