An HTTP server built on Node.js and Express that manages requests and responses to OPENAI.
This server can be used for connecting applications to allow for conversations with ChatGPT as well as for sending one-time requests.
- Download or clone the repository.
- Change into the working directory.
- Create a .env file. Create the following variable:
OPENAI_API_KEY = {your_openai_key}
- Install the required node modules with this command:
npm i
- To compile the TypeScript files, run the following command in the terminal:
tsc
- To run the server, run the following command in the terminal:
node index.js