An experimentaion API for use with Open AI and LLMs
-
hapi - web server
- haute-couture - file-based hapi plugin composer
- OpenAI API - Access to OpenAI's models, inc. GPT 3 & 4
- cheerio - parse HTML
- html-to-text - extract the text from html
If there is an env var of Environment__Name
(as injected by Systems in AWS-land), the server will try use that to fetch secrets from the ParamStore & inject into the lcoal env. It will not overwrite any clashing vars.
A node.js based API
git clone https://github.com/wiley/madgex-llm-playground
cd madgex-llm-playground
npm install
Create a local ./server/.env
with the Open AI API Key (from ParamStore):
npm run env:dev
This will download all secrets in the /dev/jobboard/llm-playground
path & write a local ./server/.env
file with them in. This file is .gitignored
- don't undo this!
.