This is a frontend application implemented in Nuxt 3 for OpenAI's ChatGPT and DALL·E API.
- Chat completion
- gpt-4
- gpt-3.5-turbo
 
- Image generation
- DALL·E
 
To begin, please ensure you have installed all dependencies:
npm i
# or
yarn
# or
pnpm iLaunch the development server and view it at http://localhost:3000:
npm run dev
# or
yarn dev
# or
pnpm devTo build your application for production, execute:
npm run build
# or
yarn build
# or
pnpm buildPreview the production build locally with the following command:
npm run preview
# or
yarn preview
# or
pnpm previewOne-line command for quick deployment:
docker run -d \
  -p 80:3000 \
  --restart unless-stopped \
  --name chatgpt-nuxt \
  lianginx/chatgpt-nuxt:latestTo deploy using Docker Compose:
version: "3"
services:
  chatgpt-nuxt:
    image: lianginx/chatgpt-nuxt:latest
    ports:
      - 80:3000
    restart: unless-stoppeddocker-compose up -d # Start and run in the background.
docker-compose stop  # Stop
docker-compose down  # Stop and deleteWhen completed, your project will be deployed onto port 80.
If you have any feedback or suggestions for improving this README document, please don’t hesitate to let me know. I appreciate your input.
There are two ways to configure the application:
- setting it up using the configuration screen on the application.
- setting it up by using environment variables in advance.
If you want to set environment variables, please refer to .env.example and place a .env file in the root directory.
This project uses the MIT license.
