This is a worker for the RapidRx project. It is responsible for processing data and then returning it in a suitable format.
This project uses cloudflare workers and the OpenAI API to run and parse/format data into a readable and usable format.
Clone the repository and run npm install
to install the dependencies.
Add the OPEN_API_KEY and AUTH_KEY to the .dev.vars file and set them accordingly using wrangler.
OPEN_API_KEY="your_open_api_key"
AUTH_KEY="your_auth_key"
To run the worker, you need to have wrangler installed. You can install it by running npm install -g @cloudflare/wrangler
.
After installing wrangler, you need to login to your cloudflare account by running wrangler login
.
Then you can run the worker by running wrangler dev
.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Simply run npm test
to run the full tests.