This is a starter project for integrating OpenAI's API into a JavaScript application.
- Clone this repository
- Run
npm install
to install dependencies - Copy
.env.example
to.env
and add your OpenAI API key - Run
npm start
to start the application
Modify src/server.js
to implement your OpenAI-powered features.
OPENAI_API_KEY
: Your OpenAI API key
- dotenv: For loading environment variables
- openai: The official OpenAI API client for Node.js