Simple AI Interlocutor
Add one .env file including the API Key on the outside folder.
OPENAI_API_KEY=<YOUR-API-KEY-HERE>
Add one .env file inside the davinci folder to point to the endpoint of backend. (I am using the default port)
VITE_BASE_URL=http://127.0.0.1:8001
Run this on one terminal window to keep the frontend server running.
cd davinci
npm install
npm run dev
Create an environment with Python 3.9 (Stable Version), I use Anaconda (but I think Miniconda works perfectly fine for the scope of this project).
conda create -n <environment-name> python=3.9
conda activate <environment-name>
pip3 install -r requirements.txt
After installing all dependencies, run this on another terminal window to run the application.
python3 server.py
The default server will be running on
http://127.0.0.1:5174/