A Python script that allows the user to chat with an AI using OpenAI's API. For as long as the script is running, the AI will remember the conversation your having.
- /quit will terminate the script
- CTRL+C will terminate the script
The script requires the following modules to be installed:
- openai
- random
- configparser
The scripts looks for your OpenAI API key in config.ini, location as it is located. The file needs to have the have the following format:
[config]
api_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Register on OpenAP's webpage: https://beta.openai.com/signup
After signing up, navigate to view API keys in the menu
- Click on the menu "Personal" in the top right corner:
- Click view API keys
- Create new secrey key
- Copy the key and paste it in config.ini