├── .dockerignore ├── .env.example ├── .eslintrc.json ├── .github └── workflows │ └── docker.chatgpt-minimal.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode └── launch.json ├── Dockerfile ├── LICENSE ├── README.md ├── README.zh-CN.md ├── docker-compose.yml ├── docs └── images │ └── demo.jpg ├── next.config.js ├── package.json ├── public ├── favicon.ico └── logo192.png ├── src ├── components │ ├── ChatGPT │ │ ├── MessageItem.tsx │ │ ├── SendBar.tsx │ │ ├── Show.tsx │ │ ├── index.less │ │ ├── index.tsx │ │ ├── interface.ts │ │ └── useChatGPT.ts │ ├── FooterBar │ │ ├── VersionBar.tsx │ │ ├── index.module.less │ │ └── index.tsx │ └── HeaderBar │ │ ├── index.module.less │ │ └── index.tsx ├── models │ └── index.ts ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── chat-completion.ts │ │ └── healthz.ts │ ├── index.module.less │ └── index.tsx ├── styles │ └── globals.css └── typings │ └── global.d.ts └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/docker.chatgpt-minimal.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.github/workflows/docker.chatgpt-minimal.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .next 2 | node_modules 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/README.md -------------------------------------------------------------------------------- /README.zh-CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/README.zh-CN.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/images/demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/docs/images/demo.jpg -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/public/logo192.png -------------------------------------------------------------------------------- /src/components/ChatGPT/MessageItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/MessageItem.tsx -------------------------------------------------------------------------------- /src/components/ChatGPT/SendBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/SendBar.tsx -------------------------------------------------------------------------------- /src/components/ChatGPT/Show.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/Show.tsx -------------------------------------------------------------------------------- /src/components/ChatGPT/index.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/index.less -------------------------------------------------------------------------------- /src/components/ChatGPT/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/index.tsx -------------------------------------------------------------------------------- /src/components/ChatGPT/interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/interface.ts -------------------------------------------------------------------------------- /src/components/ChatGPT/useChatGPT.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/ChatGPT/useChatGPT.ts -------------------------------------------------------------------------------- /src/components/FooterBar/VersionBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/FooterBar/VersionBar.tsx -------------------------------------------------------------------------------- /src/components/FooterBar/index.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/FooterBar/index.module.less -------------------------------------------------------------------------------- /src/components/FooterBar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/FooterBar/index.tsx -------------------------------------------------------------------------------- /src/components/HeaderBar/index.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/HeaderBar/index.module.less -------------------------------------------------------------------------------- /src/components/HeaderBar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/components/HeaderBar/index.tsx -------------------------------------------------------------------------------- /src/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/models/index.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/api/chat-completion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/api/chat-completion.ts -------------------------------------------------------------------------------- /src/pages/api/healthz.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/api/healthz.ts -------------------------------------------------------------------------------- /src/pages/index.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/index.module.less -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/typings/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/src/typings/global.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blrchen/chatgpt-minimal/HEAD/tsconfig.json --------------------------------------------------------------------------------