A (sort of) simple cli front end for the OpenAI API.
It can "remember" the previous message and user query.
And you can choose which personality the AI will have.
- Python >= 3.9.6
-
Get an OpenAI API Key at https://platform.openai.com/account/api-keys
-
Clone and cd in the repo
git clone https://github.com/96jaco96/coco_gpt.git && cd coco_gpt
-
Install the requirements
pip install -r requirements.txt
-
Enter your API in
config.conf
KEY = PUT YOUR API HERE
-
Run it!
python main.py
The program will give you the available commands when you run it, those commands are:
personality
to set a new personalityfor the AI
clear
to forget the previous query, response and personality
exit
to close the program
"Your code sucks!"
-cite.
Feel free to contribute then!
Any contributions you make is greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL3 License. See LICENSE.txt
for more information.