This project has a few parts:
- Plugins for translating imaginary functions into LLM API calls:
- A TypeScript plugin for transformation, in transformers/typescript/
- A Babel plugin for transformation, in transformers/babel/
- A Playground webapp
-
Use Volta to set up the correct version of node and npm
-
Install packages
npm install
-
Build all packages to make sure they are working.
npm run build
-
To run the playground locally, make sure to set environment variables (usually in
.env
) to point back to the server:OPENAI_API_KEY=<key from https://platform.openai.com/account/api-keys>
You can also add it on the command line in the next step if you want.
-
To start the playground's dev server:
cd example-clients/nextjs-playground npm run dev