Giter Club home page Giter Club logo

chatgpt-web's Introduction

ChatGPT Web

系统截图

客户端

image

image

管理端 登录 修改密码 image

image

image

image

image

image

image

image

image

image

image

image

为了方便大家沟通交流,同步消息,建了QQ群,目前已有 1190 人,群号 145225165,申请入群后请及时回复验证码,否则360秒后会被群机器人自动移除群。

image image

功能列表

[✓] 支持最新模型 GPT4.0以及后续推出的最新模型

[✓] 支持多 key 轮询池,一个 key 被封或者流量耗尽自动切换下一个有效的 key

[✓] 支持上下文对话

[✓] 精确统计每次对话消耗的 tokens

[✓] 支持百度敏感词过滤,后续会支持腾讯敏感词过滤等主流平台

[✓] 支持自定义回复内容,比如提问当前使用 GPT 版本,可以自定义回复内容为 4.0 版本

[✓] prompt 提示词商店管理

[✗] 卡密支持次卡和流量卡(tokens卡) 两种付费模式,支持自定义卡密有效期

[✗] 支持卡密批量生成和导出 txtcsvjson格式

[✗] 管理后台可以配置会员注册时是否需要强制邮箱或者手机号实名验证

[✗] 管理后台可以配置套餐购买时跳转到第三方发卡平台或者是在线支付

[✗] 支持不同会员等级走不同 key 通道,如 VIP 会员走专属 gpt4.0 通道,普通付费会员走普通 key 通道

[✗] 支持多支付渠道,如微信、支付宝

[✗] 支持第三方登录,如QQ、微信扫码登录、关注公众号获取登录验证码

[✗] 实现多角色,如对话和绘图

[✗] 公告管理,可以在管理后台配置是否开启公告以及公告是否可以关闭

[✗] 实现联网搜索

[✗] 解决输入的文本超出模型最大tokens

[✗] 支持分享获取免费次数

[✗] 支持分销

[✗] 支持代理商

手动部署

服务器无需安装任何环境,只需要安装 nginx 来配置域名,nginx 修改配置后需要重启才能生效

服务器放行 3000 端口,将数据库文件 db.sql 导入到 mysql,修改 service 目录下 .env 里数据库配置信息、邮箱配置、百度文本审核配置信息,其他配置信息无需改动

根据自己的系统选择对应的服务端,下面以 linux 环境为例, 进入 service 目录,运行 nohup ./amd64.linux>gpt.log & 启动后端服务 运行 curl http://127.0.0.1:3000,如果出现

{"Hello":"Gochat 后端服务启动成功"}

说明后端服务启动成功

将用户端绑定到 chatgpt 目录,如 chat.baidu.comnginx 主要配置如下:

listen 80;
server_name chat.baidu.com;
index index.php index.html index.htm default.php default.htm default.html;

location / {
    root /www/wwwroot/chatgpt/fontend/; // 改成自己客户端项目实际路径
    index index.html index.htm;
    try_files $uri $uri/ /index.html;
}

location /api/{
    proxy_pass http://127.0.0.1:3000;
}

访问 chat.baidu.com 即可访问前台

将管理端域名绑定到 admin 目录,如 admin.baidu.comnginx 主要配置如下:

listen 80;
server_name admin.baidu.com;
index index.php index.html index.htm default.php default.htm default.html;

location / {
    root /www/wwwroot/chatgpt/admin/; // 改成自己管理端项目实际路径
    index index.html index.htm;
    try_files $uri $uri/ /index.html;
}

location /backend/{
    proxy_pass http://127.0.0.1:3000/backend/;
}

访问 chat.baidu.com 即可访问管理后台,默认账号 [email protected], 密码 123456

宝塔部署

  • 上传源码

    点击宝塔左侧文件菜单,将源码上传到 www/wwwroot 目录,如下图

  • 导入数据库

    点击宝塔左侧数据库菜单,点击添加数据库,填写数据库信息,并记下数据库密码,如下图 点击提交后找到新添加的数据库,点击导入按钮弹出上传框,点击从本地上传,选择 db.sql 文件进行上传

  • 修改配置信息

    点击宝塔左侧文件菜单,找到 service/.env 配置文件,修改里面的数据库配置信息、邮箱配置信息和百度文本审核配置信息

  • 启动服务端

    点击宝塔左侧网站菜单,选择 go项目,添加 go项目,选择要运行的二进制文件 点击宝塔左侧终端菜单,输入 curl http://127.0.0.1:3000,如果出现

    {"Hello":"Gochat 后端服务启动成功"}

    说明后端服务启动成功

关联链接

openai 独享账号推荐购买渠道:https://tomfk.top/buy/14

自建代理开源项目:https://github.com/easychen/openai-api-proxy/

百度敏感词过滤接口申请:https://console.bce.baidu.com/ai/?fromai=1#/ai/antiporn/overview/resource/getFree

更新日志

v1.0.4

  • 增加百度敏感词过滤支持
  • 增加对gpt-4.0、gpt-4-0314、gpt-4-32k、gpt-4-32k-0314 模型的支持
  • 管理后台支持修改登录账号
  • 管理后台新增对模型的细调
  • 管理后台支持生成卡密时直接绑定用户
  • 修复管理后台套餐保存报错的 bug
  • 修复管理后台生成卡券选择套餐时勾选后是数字的 bug

v1.0.3

  • 修复无法流式输出的bug
  • 修复无法关联上下文的bug,目前默认关联最近5条历史记录
  • 优化会员登录状态判断
  • 修复管理后台只有一个 key 时报错的 bug
  • 修复会员多次叠加购买次卡时次数没有叠加的 bug
  • 管理后台仪表盘显示真实数据
  • 管理后台会员管理增加删除操作

鸣谢

chatgpt-web 原项目

chatgpt-web's People

Contributors

0x-jerry avatar chanzhaoyu avatar chenxch avatar cloudgrin avatar cornerskyless avatar dwsy avatar eryajf avatar germmc avatar gouguoyin avatar hyln9 avatar jjm2473 avatar lixiaohu1990 avatar marlkiller avatar nagaame avatar nalf3in avatar nisiyong avatar ottocsb avatar peterdavehello avatar puppywang avatar ryanxinone avatar shansing avatar xieccc avatar yi-ge avatar yiios avatar yuthelloworld avatar zo3i avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.