This server accepts a POST request to /chat, and uses the server's API Key and IP address to pass the query to the openai API. By running multiple instances spread out to geographically separate servers, would allow for load balancing.
git clone git@github.com:GraphLinq/GraphLinq.ServerRelayOpenAI.git
yarn
Edit server.js and set your API Key const configuration = new Configuration({apiKey: "",});.
Edit server.js and change const port = 9021; to the port you would like to use.
yarn start
