3 Services
- Backend (FastAPI)
- Database (MySQL)
- FrontEnd - (Bootstrap)
- Copy example.env to
.env
file and set theOPENAI_API_KEY
to be secret key - Run
docker-compose up --build
This creates a set of containers to interact OPENAI's ChatGPT. Just plugin your OpenAI API Key as an environment variable and build. Navigate to the built-in swagger api docs e.g. http://localhost:1313/docs Find the /prompt and click on Execute.
Now you have connected your API to ChatGPT. Build more endpoints. Play around with the weights!
- Connect to it via localhost:1313
/docs
- Shows documentation of the server
- Connect to it via localhost:1314 root/root
- Default Database chatgpt_docs setup