ChatDOC_API_Demo

Environment

  • Node.js >= 16.x
  • pnpm >= 8.x

Installation

run pnpm install

Custom server environment

  • Set the env variable API_KEY

    API_KEY is the API key that you obtained after purchasing the API package or membership plan.

    To set the API_KEY, you can use the command line.

    For Linux and macOS

    export API_KEY=xxx

    For Windows

    set API_KEY=xxx

    Alternatively, you can use a .env file to set the API_KEY variable. Here's how:

    1. run cp ./.env.template ./.env

    2. Fill in API_KEY in the .env file.

Getting started

run pnpm start

The started