Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 556 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 556 Bytes

OpenAI Starter Project

This is a starter project for integrating OpenAI's API into a JavaScript application.

Setup

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Copy .env.example to .env and add your OpenAI API key
  4. Run npm start to start the application

Usage

Modify src/server.js to implement your OpenAI-powered features.

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key

Dependencies

  • dotenv: For loading environment variables
  • openai: The official OpenAI API client for Node.js