This is a JSON processing service that transforms unstructured data into well-structured JSON using OpenAI 3.5 turbo and gpt4
Check it out here
-
We use Unkey for rate-limiting
-
/api/json
uses gpt-4 ( 2 request limit per 30 seconds ) -
/api/jsonCheap
uses gpt-turbo-3.5 ( 4 request limit per 30 seconds )
Upstash Redis (Optional as we just keep track of total requests using this. Required if you are planning to deploy this)
-
Go to unkey ratelimits
-
Create a new namespace with name
harshbhat
-
Go to settings/root-keys and create a root key with Ratelimit permissions
-
Add it in the .env file
UNKEY_ROOT_KEY
-
Clone the repository:
git clone https://github.com/harshsbhat/ordox.git cd ordox
-
Setup .env files
cp .env.example .env
MANDATORY:
OPENAI_API_KEY="" UNKEY_ROOT_KEY=""
OPTIONAL:
UPSTASH_REDIS_REST_URL="" UPSTASH_REDIS_REST_TOKEN=""
-
Install dependencies and run the project it should start on port 3000
pnpm i pnpm dev
You can use https://ordox.vercel.app/api/json
to convert your Unstructured data into JSON using OpenAI gpt-4 model. Although it has a limit of 2 requests per 30 seconds
You can use https://ordox.vercel.app/api/json
to convert your Unstructured data into JSON using OpenAI gpt-3.5-turbo model. This one has a limit of 4 requests per 30 seconds
This project is licensed under the MIT License - see the LICENSE file for details.