https://github.com/Chanzhaoyu/chatgpt-web
wx: surestfeng
安装方式:同 https://github.com/Chanzhaoyu/chatgpt-web
我和他的区别在于增加了邮箱登录 和 注册,并在前端做了限制 1000个token 上下文会话
src/views/chat/index.vue:120
https://github.com/surest-sky/chatgpt-web-for-login/blob/main/docs/install.sql
.env
OPENAI_API_KEY=
# 可以使用 qq 邮箱的
MAIL_FORM=
MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_SECURE
# redis 配置
REDIS_HOST=
REDIS_PORT=
REDIS_DB=
# mysql
DB_CONNECTION=mysql
DB_HOST=
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
MAIL_PASSWORD 为 授权码
腾讯企业邮
[email protected]
MAIL_DRIVER=smtp
MAIL_HOST=smtp.exmail.qq.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=zE****gBsyg
MAIL_SECURE=ssl
QQ 邮
# https://wx.mail.qq.com/list/readtemplate?name=app_intro.html#/agreement/authorizationCode
[email protected]
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=vghvfmqpvrnzfgag
MAIL_SECURE=ssl