An unofficial Python wrapper designed to interact with OpenAI's ChatGPT API from the command line. This script allows users to have a conversation with ChatGPT, and reset the conversation when desired.
- Python 3.6+
- requests
- Clone the repository or download the script.
- Install requests library if not already installed:
pip install requests
- Replace YOUR_API_KEY in the script with your OpenAI API key.
- Run the script:
python chatgptpy.py
- Enter your message and press Enter to send it to ChatGPT.
- Type 'exit' to quit the script, or 'reset' to reset the conversation.
- Interactive chat with ChatGPT API.
- Resettable chat history.
- Hourglass animation during API call.
This project is licensed under the MIT License. See the LICENSE file for details.