MCPcopy Index your code
hub / github.com/79E/ChatGpt-Web

github.com/79E/ChatGpt-Web @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
248 symbols 594 edges 84 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

icon

ChatGPT Web

English / 简体中文

A commercially-viable ChatGpt web application built with React.

可部署商业化的 ChatGpt 网页应用。

Issues / Buy Me a Coffee / 赞助我

Deploy to Vercel

🐶 演示

页面链接

Web 演示: https://www.aizj.top/

Admin 演示: https://www.aizj.top/admin

如需帮助请提交 Issues 或赞赏时留下联系方式。

页面截图

cover cover cover cover

🤖 主要功能

  • 后台管理系统,可对用户,Token,商品,卡密等进行管理
  • 精心设计的 UI,响应式设计
  • 极快的首屏加载速度(~100kb)
  • 支持Midjourney绘画和DALL·E模型绘画,GPT4等应用
  • 海量的内置 prompt 列表,来自中文英文
  • 一键导出聊天记录,完整的 Markdown 支持
  • 支持自定义API地址(如:openAI / API2D

🎮 开始使用

Node 环境

node 需要 ^16 || ^18 || ^19 版本(node >= 16.19.0),可以使用 nvm 管理本地多个 node 版本。

# 查看 node 版本
node -v

# 查看 npm 版本
npm -v

# 查看 yarn 版本
yarn -v

1.先 Fork 本项目,然后克隆到本地。

git clone https://github.com/79E/ChatGpt-Web.git

2.安装依赖

yarn install

3.运行

# web项目启动
yarn dev:web

4.打包

yarn build

⛺️ 环境变量

如果是前后端分离模式部署项目则需要填以下配置

VITE_APP_REQUEST_HOST

请求服务端的Host地址。

🚧 开发

强烈不建议在本地进行开发或者部署,由于一些技术原因,很难在本地配置好 OpenAI API 代理,除非你能保证可以直连 OpenAI 服务器。

本地开发

  1. 安装 nodejs 和 yarn具体细节请询问 ChatGPT
  2. 执行 yarn install 即可
  3. web项目开发 yarn dev:web
  4. 服务端项目开发 yarn dev
  5. 打包项目 yarn build

服务端

  1. 前端请求服务端的 接口文档 你们可以按照这个接口文档进行开发
  2. 如需帮助请提交 Issues 或赞赏时留下联系方式。

🎯 部署

直接将WEB项目打包好的 dist 目录上传到服务器即可。注意服务器IP地址位置!

Vercel

如果你将其托管在自己的 Vercel 服务器上,可点击 deploy 按钮来开始你的部署!

Deploy to Vercel

如需帮助请提交 Issues 或赞赏时留下联系方式。

🧘 贡献者

见项目贡献者列表

📋 开源协议

License MIT

Extension points exported contracts — how you extend this code

RequestLoginParams (Interface)
(no doc)
src/types/index.ts
PromptState (Interface)
(no doc)
src/store/prompt/slice.ts
ScrollReturn (Interface)
(no doc)
src/hooks/useScroll.ts
RouteOptions (Interface)
(no doc)
src/routers/index.tsx
UserInfo (Interface)
(no doc)
src/types/index.ts
userState (Interface)
(no doc)
src/store/user/slice.ts
ResponseLoginData (Interface)
(no doc)
src/types/index.ts
shopState (Interface)
(no doc)
src/store/shop/slice.ts

Core symbols most depended-on inside this repo

getConfigValue
called by 18
src/pages/admin/config/index.tsx
formatTime
called by 13
src/utils/formatTime.ts
onRewardFormSet
called by 8
src/pages/admin/config/index.tsx
generateUUID
called by 5
src/utils/generateUUID.ts
add0
called by 5
src/utils/formatTime.ts
onTurnoverLog
called by 5
src/pages/shop/index.tsx
isPlainObject
called by 4
src/request/index.ts
request
called by 4
src/request/index.ts

Shape

Function 198
Interface 50

Languages

TypeScript100%

Modules by API surface

src/request/adminApi.ts49 symbols
src/types/index.ts22 symbols
src/types/admin.ts20 symbols
src/request/api.ts15 symbols
src/request/index.ts14 symbols
src/pages/admin/config/index.tsx9 symbols
src/pages/chat/components/ChatMessage/index.tsx8 symbols
src/pages/draw/index.tsx7 symbols
src/store/user/async.ts5 symbols
src/pages/shop/index.tsx5 symbols
src/hooks/useScroll.ts5 symbols
src/pages/chat/index.tsx4 symbols

For agents

$ claude mcp add ChatGpt-Web \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page