AmpleAI Plugin is an Amplenote plugin that adds OpenAI & Ollama interactivity with Amplenote.
- Clone this repo.
git clone [email protected]:alloy-org/openai-plugin.git
- Install node and npm if you haven't already.
- Run
npm install
to install the packages. - Copy
.env.example
to.env
and fill in the environment variable for your OpenAI key
Run NODE_OPTIONS=--experimental-vm-modules npm test
to run the tests.
If it complains about jsdom being absent, run npm install -D jest-environment-jsdom
and try again.
https://public.amplenote.com/F4rghypGZSXEjjFLiXQTxxcR
NODE_OPTIONS=--experimental-vm-modules npm run test -- --watch
- https://esbuild.github.io/getting-started/#your-first-bundle
- https://jestjs.io/
- https://www.gitclear.com
OLLAMA_ORIGINS=https://plugins.amplenote.com ollama serve