A simple and functional CLI-based implementation for ChatGPT.
You'll have to get the openai dependency and then compile everything up:
pip install openai
python kisschatgpt.py
- Go to https://platform.openai.com/account/api-keys
- Click on Create a new secret key
- Paste the key where is required inside the script
- Simple: This is literally my first Python script, so it has to be, simple.
- Model: Driven by
text-davinci-003, but you can change it anytime selecting one of these. - Awesome: Like you, you're awesome.
This work is licensed under a MIT License.
"Whoever loves discipline loves knowledge, but whoever hates correction is stupid."