This project was a ground up, 0-100 learning experience and I documented everything I learned and how I approached my problem solving here if you would like to read through my logs!
git pull
For quick testing but unsafe practice: In Dockerfile -> Uncomment ENV variable and add your OpenAI_API_KEY.
docker build -t openai_test .
docker run openai_test
A safer method: Create a .env file at root and add in your api key:
API_KEY_OPENAI={insert your OpenAI API Key Here}
Note: This will allow main.py to work without having to add your key into terminal or hard coding it into your Dockerfile which is bad practice and something I mistakenly did originally
Then, within your docker run command:
docker run --env-file .env openai_test
After successful docker run, go to OpenAI Playground and input test prompt:
"How do I add a youtube video?"
Results should populate based on article data