1.0.0 • Published 1 year ago
madgex-llm-playground v1.0.0
madgex-llm-playground
An experimentaion API for use with Open AI and LLMs
Stack
- 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
Sourcing API keys
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.
Local development
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!
.
1.0.0
1 year ago