Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 887 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 887 Bytes

openai-quickstart-vue

This is a quickstart template for using OpenAI's GPT-3.5 API in Vue 3.

image

Setup

  1. Clone this repository and navigate into the project directory

    git clone https://github.com/nephen/openai-quickstart-vue.git
    cd openai-quickstart-vue
  2. Using pnpm to install dependencies

    pnpm install
  3. Create the .env file to store your OpenAI API key and Orgnaization ID

    touch .env
  4. Add your OpenAI API key and Orgnaization ID to the .env file

    # Example
    VITE_CHAT_URL=xxxxxxx
    VITE_CHAT_TOKEN=xxxxxxxx
  5. Run the development server, and open http://localhost:5173 in your browser

    pnpm dev
  6. Build the project for production

    pnpm build