- Make a folder called
filesin the root directory of the project. - Make a file called
.envin the root directory of the project. - Add the following line to the
.envfile:
CHATGPT_API_KEY=<YOUR_API_KEY>
- Run the following commands:
python3 echo.py
- Open a browser and go to
http://localhost:31337/ - Voila!
- Currently uses
gpt-3.5-turbo-instruct. Can look into porting togpt-4-turbo, but that will require moving from Completions API to Chat Completions API.