Skip to content
프로젝트

소개

基于 Nuxt.js 框架的 ChatGPT 类项目,支持 OpenAI 和 Azure 两种 API 切换,支持黑暗模式、中英日多语言切换。

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

chatgpt-nuxt

preview

ENGLISH | 简体中文 | 日本語

This is a frontend application implemented in Nuxt 3 for OpenAI's ChatGPT and DALL·E API.

Supported APIs

Supported Models

  • Chat completion
    • gpt-4
    • gpt-3.5-turbo
  • Image generation
    • DALL·E

Setup

To begin, please ensure you have installed all dependencies:

npm i
# or
yarn
# or
pnpm i

Development Server

Launch the development server and view it at http://localhost:3000:

npm run dev
# or
yarn dev
# or
pnpm dev

Production

To build your application for production, execute:

npm run build
# or
yarn build
# or
pnpm build

Preview the production build locally with the following command:

npm run preview
# or
yarn preview
# or
pnpm preview

Deploy

One-line command for quick deployment:

docker run -d \
  -p 80:3000 \
  --restart unless-stopped \
  --name chatgpt-nuxt \
  lianginx/chatgpt-nuxt:latest

To deploy using Docker Compose:

version: "3"
services:
  chatgpt-nuxt:
    image: lianginx/chatgpt-nuxt:latest
    ports:
      - 80:3000
    restart: unless-stopped
docker-compose up -d # Start and run in the background.
docker-compose stop  # Stop
docker-compose down  # Stop and delete

When 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.

Configuration

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.

License

This project uses the MIT license.

관련 프로젝트 살펴보기

불러오는 중…