This is a simple Express.js server that interfaces with the OpenAI API to provide text completion functionality.
- Node.js installed on your machine.
- An OpenAI API key.
- Clone the repository to your local machine.
git clone "This repo"
cd your-repo-name
- Install the required dependencies.
npm install
- Usage Start the server.
npm start
Once the server is running, you can make GET requests to the /complete-text?input=YOUR_INPUT endpoint with the input query parameter to get text completions.