This is a quickstart template for using OpenAI's GPT-3 API in Vue 3.
-
Clone this repository and navigate into the project directory
git clone https://github.com/ysfscream/openai-quickstart-vue.git cd openai-quickstart-vue
-
Using
pnpm
to install dependenciespnpm install
-
Create the
.env
file to store your OpenAI API key and Orgnaization IDtouch .env
-
Add your OpenAI API key and Orgnaization ID to the
.env
file# Example VITE_OPEN_API_KEY=xxxxxxxx
-
Run the development server, and open http://localhost:3000 in your browser
pnpm dev
-
Build the project for production
pnpm build