Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 添加注册登录&同步聊天数据 #589

Closed
wants to merge 180 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
0cccd04
feat: 添加注册登录&同步聊天数据
Mar 14, 2023
436faab
Merge branch 'Chanzhaoyu:main' into main
Kerwin1202 Mar 15, 2023
1da55f0
Merge remote-tracking branch 'github/main'
Mar 18, 2023
472e06d
美化邮箱界面
LuckyWang6 Mar 18, 2023
ac1e026
Update mail.ts
LuckyWang6 Mar 18, 2023
829b9e6
Merge pull request #2 from luckywangxi/main
Kerwin1202 Mar 18, 2023
daa52b8
chore: 更新readme
Mar 18, 2023
f2d5d3e
fix: 首次打开页面无法滚动倒底部
Mar 18, 2023
785e307
feat: 用户信息管理
Mar 19, 2023
e84e7a4
feat: 自定义标题
Mar 19, 2023
0271bba
fix: 页面标题无法替换
Mar 19, 2023
d41f167
PR for Korean language support as follows
turbobit Mar 19, 2023
d3213bb
Merge pull request #3 from turbobit/main
Kerwin1202 Mar 20, 2023
15e16df
feat: 前端页面设置ApiKey
Mar 21, 2023
4670df4
chore: 更新readme
Mar 21, 2023
9322441
fix: file error
Mar 22, 2023
9eb5e5b
fix: file error
Mar 22, 2023
fba52bc
fix: register
Mar 22, 2023
5c4259a
feat: 开启登录
Mar 22, 2023
1540ce9
fix: tsl switch
Mar 22, 2023
3449032
Merge remote-tracking branch 'github/main'
Mar 25, 2023
e8b7de9
Merge remote-tracking branch 'github/main'
Mar 25, 2023
de336b5
test: 优化邮箱新增测试
Mar 25, 2023
ced3648
fix: 清理聊天记录的时候无效
Mar 25, 2023
7b48303
fix: miss null
Mar 25, 2023
d2b04a6
fix: build error
Mar 25, 2023
367dfd5
fix: user info empty
Mar 25, 2023
50c87d5
fix: optimize login and register UI
simulacraliasing Mar 25, 2023
de45197
Merge remote-tracking branch 'Kerwin/main'
simulacraliasing Mar 25, 2023
f54b7c7
fix: 模板丢失
Mar 25, 2023
8de040c
feat: 修改验证账号逻辑,需要管理员开通,修复一些bug
Mar 25, 2023
d7510d4
Merge remote-tracking branch 'Kerwin1202/main'
simulacraliasing Mar 25, 2023
31754e9
fix: add locales for login and register tabpanes
simulacraliasing Mar 25, 2023
b814d3d
Pull Request #6: feat: 修改验证账号逻辑,需要管理员开通,修复一些bug
Mar 25, 2023
562b089
Merge pull request #5 from simulacraliasing/main
Kerwin1202 Mar 26, 2023
3333919
feat: 修改验证账号逻辑,需要管理员开通,修复一些bug
Mar 26, 2023
84b1f74
添加mongo-gui,在用户管理面板实现之前,实现对用户的暂时管理
LuckyWang6 Mar 27, 2023
cfa8900
fix: 邮箱格式校验
Mar 28, 2023
3c566ae
Merge pull request #10 from luckywangxi/patch-2
Kerwin1202 Mar 28, 2023
c78d2f1
Merge remote-tracking branch 'github/main'
Mar 28, 2023
e33e5ad
perf: 优化加载体验
Mar 30, 2023
3dd55c8
Merge remote-tracking branch 'github/main'
Apr 1, 2023
4eb5961
fix: 最后一个对话被删除之后无法聊天
Apr 1, 2023
fc35035
fix: default chat room for first login
Apr 1, 2023
612383f
perf: 无限加载聊天记录
Apr 1, 2023
717da48
fix: command line debugging lost .env environment variables
Apr 2, 2023
cc95f02
fix: 概率无法加载消息
Apr 2, 2023
8549c15
fix: 切换会话遮罩层未关闭
Apr 2, 2023
c549ef3
Merge remote-tracking branch 'github/main'
Apr 4, 2023
c982b61
fix: 使API余额查询可用 @luckywangxi #11
Apr 4, 2023
9da479f
Merge branch 'pulls/1851624242/6'
Apr 5, 2023
7e31755
fix: 网页版在刷新网页后都会新开conversationId
Apr 5, 2023
a84f446
Merge pull request #13 from EvanDbg/conversationId
Kerwin1202 Apr 5, 2023
97f0fa5
feat: 重新生成消息时同时保存老的结果
zhujunsan Apr 6, 2023
0a23914
reformat
zhujunsan Apr 6, 2023
7bf7a74
reformat 1
zhujunsan Apr 6, 2023
dcc40e8
Merge pull request #14 from zhujunsan/main
Kerwin1202 Apr 7, 2023
0f6126d
记录每个请求的 Token 消耗(预估)
zhujunsan Apr 8, 2023
fa47199
reformat 1
zhujunsan Apr 8, 2023
0315da4
Merge pull request #15 from zhujunsan/record_usage
Kerwin1202 Apr 9, 2023
35a2699
PR for Korean language support as follows
turbobit Apr 10, 2023
3eb9369
Merge pull request #16 from turbobit/main
Kerwin1202 Apr 10, 2023
06d56e6
Update .env.example
lsvih Apr 11, 2023
e024746
udpate .env.example
lsvih Apr 11, 2023
1987c5d
Merge pull request #17 from lsvih/patch-1
Kerwin1202 Apr 11, 2023
fddd999
chuck 只传输必要信息
zhujunsan Apr 14, 2023
2a0ff2a
支持展示每个回答所用的 token 消耗
zhujunsan Apr 14, 2023
4bde51f
fix ts type check
zhujunsan Apr 14, 2023
da0eb14
fix 文本尺寸
zhujunsan Apr 14, 2023
cc6aaa2
支持展示每个回答所用的 token 消耗 +i18n
zhujunsan Apr 14, 2023
3cf3b9c
Merge pull request #19 from zhujunsan/main
Kerwin1202 Apr 15, 2023
d0fb6b8
chore: improve tip message
Apr 15, 2023
3c9a92e
fix: config error
Apr 15, 2023
796d731
feat: 添加自定义 temperature 和 top_p (#1260)
Apr 15, 2023
62501b6
fix: 调整光标到底部
Apr 15, 2023
a9ae1ea
chore: 回退光标问题
Apr 15, 2023
f25e9c7
fix: 如果超时导致聊天无法正常记录
Apr 15, 2023
f82b4ee
feat: 支持敏感词审核
Apr 16, 2023
a52966a
fix: missing field
Apr 16, 2023
89951ef
feat: custom sensitive words
Apr 16, 2023
77c8a32
fix: exception when the account does not exist
Apr 16, 2023
f0f1cfb
feat: support password reset
Apr 16, 2023
c792148
fix: access token error
Apr 16, 2023
568f428
fix: fetch balance with proxy
Apr 16, 2023
8afc235
fix: reverse proxy save lost
Apr 16, 2023
52ad5bd
fix: baidu audit not working (Closes #36)
Apr 17, 2023
807d400
fix: markdown 表格内没有换行
Apr 17, 2023
14c323c
feat: support room specific prompt
Apr 18, 2023
f4910f3
fix: pop-up window cannot be closed on the mobile (Closes #48)
Apr 19, 2023
9bf9edf
fix: cannot chat without logging in (Closes #31)
Apr 19, 2023
c399464
fix: 聊天记录加载异常 (Close #40)
Apr 22, 2023
cc7d3be
修改yml值属性
imkratos Apr 25, 2023
8240a4b
fix: 聊天记录概率无法滚动底部
Apr 25, 2023
6c74f84
Merge pull request #70 from imkratos/patch-1
Kerwin1202 Apr 25, 2023
5aaaf41
chore: time format
Apr 25, 2023
56c67f0
chore: nginx防止爬虫爬取配置
Apr 25, 2023
a3bd540
fix: change default proxy url
Apr 25, 2023
bc27535
chore: chat model
Apr 25, 2023
9e2fcf4
perf: 优化复制逻辑
Apr 26, 2023
65d6f33
chore: 优化重复注册 (Close #75)
Apr 26, 2023
5b9daba
fix: 无法滚动倒底部 (Close #74)
Apr 26, 2023
55050ce
chore: api or accesstoken
Apr 26, 2023
b3796aa
Delete issues_close.yml
Kerwin1202 Apr 27, 2023
fcf476d
fix: can't save accesstoken (Close #79)
Apr 27, 2023
6430a0b
fix: reset password show modal (Close #83)
Apr 27, 2023
4693cd1
fix: 记录错误信息 (Close #81)
Apr 27, 2023
3e24157
chatgpt版本从5.2.2回退到5.1.2,原因:gpt4使用token长回复报错
Sswordq Apr 28, 2023
6790df2
Merge pull request #92 from Sswordq/main
Kerwin1202 May 1, 2023
6c14af8
chore: chatgpt接口升级5.2.4
May 2, 2023
e607a69
chatUsage 中,userId 记录为 ObjectID 类型,以方便之后的 aggregate 等操作
zhujunsan May 7, 2023
27103b6
聊天历史由 MongoDB 中获取
zhujunsan May 7, 2023
5b70413
Merge pull request #113 from zhujunsan/messageHistoryInMongy
Kerwin1202 May 8, 2023
1d0c3c6
fix: only root user get config (Close #120)
May 8, 2023
15d9c1c
fix: 无法删除单条消息 (Close #119)
May 8, 2023
cb4b41d
Merge pull request #112 from zhujunsan/kerwin_main
Kerwin1202 May 8, 2023
3fb11c6
fix: 概率聊天历史未加载
May 8, 2023
9737fd1
使用MongoDB URL里的数据库名称
jamebal May 12, 2023
f3f9fe7
Merge pull request #134 from jamebal/jmal
Kerwin1202 May 12, 2023
32342ba
feat: 增加用户使用量统计页面
zhujunsan May 17, 2023
73689a1
优化时间筛选交互
zhujunsan May 17, 2023
604755a
再次修 typecheck
zhujunsan May 17, 2023
1104844
Merge pull request #137 from zhujunsan/kerwin_main
Kerwin1202 May 20, 2023
a414568
feat: 显示AccessToken过期时间(Close #145)
May 20, 2023
c01eac0
fix: build error miss module
May 20, 2023
1a39272
feat: 允许查看历史响应结果
May 21, 2023
dae4df5
feat: 支持 ios app 的两种模型(Close #147)
May 21, 2023
70b3884
fix: 自己的发言时间显示不正确
May 21, 2023
82888b9
chore: 每个对话上下文关系独立
May 21, 2023
7d15760
chore: allow users to customize models(Close #142)
May 21, 2023
f161051
feat: users manager
May 22, 2023
1b120f8
fix: the model was not saved successfully(Close #152)
May 22, 2023
9bee766
feat: support multiple key random usage(Close #155, Close #138)
May 23, 2023
ebd5df8
fix: admin role error (Close #158)
May 23, 2023
0c2cef6
chore: set user role
May 23, 2023
ab07c60
Update README.md
Kerwin1202 May 23, 2023
30c77e7
fix: keys miss chat model
May 23, 2023
41ba873
fix: the specified model is invalid
May 23, 2023
98f2807
chore: allow delete user
May 24, 2023
75f53dc
fix: 尝试修复mongo版本问题 (Close #170)
May 24, 2023
92d95b0
chore: remark (Close #171)
May 25, 2023
a7b3732
chore: 敏感词提示
May 25, 2023
0648186
fix: 无法保存基本设置(Close #190)
May 27, 2023
2085d90
chore: 增加用户组 (Close #180)
May 27, 2023
8f2e17a
style: 底部滚动条 (Close #186)
May 27, 2023
b826368
fix: api 同时间支持多人 (Close #169)
May 27, 2023
9f2f5c3
feat: support real stop response (Close #157)
May 27, 2023
a6f7bc0
fix: 尝试修复刷新页面无法滚动底部
May 28, 2023
05685d1
fix: unable to load chat records after logging in to safari(Close #194)
May 28, 2023
3d1994b
fix: clear cache after delete key (Close #197)
May 29, 2023
5a2b929
chore: 繁体翻译
May 29, 2023
3c682c6
fix: 优化随机key的逻辑 (Close #204)
Jun 3, 2023
43bd5cc
fix: access token 模式多 key (Close #203)
Jun 3, 2023
0cf7461
fix: 多层代理导致ip获取错误,限流失效
popcell Jun 3, 2023
698829e
feat: 实现用户登录权限相关接口的限流(登录、注册、发送邮件等等)
popcell Jun 3, 2023
314989d
Merge pull request #216 from popcell/fix-limiter-ip
Kerwin1202 Jun 4, 2023
fb65b3e
Merge pull request #217 from popcell/feat-auth-limiter
Kerwin1202 Jun 4, 2023
43f553c
Update docker-compose.yml
Kerwin1202 Jun 5, 2023
89552f8
fix: 手机版样式 (Close #227)
Jun 11, 2023
570ccef
chore: 新增模型 (Close #243)
Jun 14, 2023
dff17a9
fix: 手机版样式 (Close #227)
Jun 14, 2023
6a330bc
Update max_token for 16k
liantian-cn Jun 14, 2023
dc962d8
fix: error chat model (Close #247)
Jun 15, 2023
259847b
Merge pull request #248 from liantian-cn/main
Kerwin1202 Jun 15, 2023
2f60dec
fix: remove unused fetchChatAPI
Fanlu91 Jun 19, 2023
397e5f4
fix: add interface to fix Property does not exist on type 'unknown'.ts
Fanlu91 Jun 19, 2023
d28de1b
fix: Failed to resolve component NButton
Fanlu91 Jun 21, 2023
af2f07b
Merge pull request #268 from Fanlu91/fix_button
Kerwin1202 Jun 23, 2023
204055c
Merge pull request #260 from Fanlu91/fix_fetchChatAPI
Kerwin1202 Jun 23, 2023
d1b3d83
chore: gpt-3.5-turbo-16k-0613 (Close #257)
Jun 24, 2023
de0b5ec
chore: show description (Close #273)
Jun 24, 2023
378dac7
fix: 不能验证删除的用户
Jun 24, 2023
7bd68a3
docs: 减少初始环境变量
Jun 24, 2023
d2e2082
chore: button size
Jun 24, 2023
6665170
chore: allow add new user (Close #286)
Jul 8, 2023
d067727
feat: support accesstoken token statistic (Close #275)
Jul 9, 2023
cf88467
fix: sync userinfo on multiple open browser (Close #296)
Jul 13, 2023
d1f1844
feat: fixed model for each chat room (Close #300)
Jul 15, 2023
1de68dd
chore: show user role (Close #302)
Jul 15, 2023
c46c54c
fix: show real user role
Jul 15, 2023
4c33187
fix: allow close login modal
Jul 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VITE_GLOB_API_URL=/api
VITE_APP_API_BASE_URL=http://127.0.0.1:3002/

# Whether long replies are supported, which may result in higher API fees
VITE_GLOB_OPEN_LONG_REPLY=false
VITE_GLOB_OPEN_LONG_REPLY=true

# When you want to use PWA
VITE_GLOB_APP_PWA=false
22 changes: 0 additions & 22 deletions .github/workflows/issues_close.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ coverage

# Environment variables files
/service/.env
/docker-compose/nginx/html
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`2023-04-03`

> 更新默认 `accessToken` 反代地址为 [[acheong08](https://github.com/acheong08)] 的 `https://bypass.churchless.tech/api/conversation`
> 更新默认 `accessToken` 反代地址为 [[pengzhile](https://github.com/pengzhile)] 的 `https://ai.fakeopen.com/api/conversation`

## Enhancement
- 添加 `socks5` 代理认证 [[yimiaoxiehou](https://github.com/Chanzhaoyu/chatgpt-web/pull/999)]
Expand Down Expand Up @@ -101,7 +101,7 @@

`2023-03-13`

更新依赖,`access_token` 默认代理为 [acheong08](https://github.com/acheong08) 的 `https://bypass.duti.tech/api/conversation`
更新依赖,`access_token` 默认代理为 [pengzhile](https://github.com/pengzhile) 的 `https://bypass.duti.tech/api/conversation`

## Feature
- `Prompt` 商店在线导入可以导入两种 `recommend.json`里提到的模板 [simonwu53](https://github.com/Chanzhaoyu/chatgpt-web/pull/521)
Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@ RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/

COPY /service /app

COPY --from=frontend /app/replace-title.sh /app

RUN chmod +x /app/replace-title.sh

COPY --from=frontend /app/dist /app/public

COPY --from=backend /app/build /app/build

COPY --from=backend /app/src/utils/templates /app/build/templates

EXPOSE 3002

CMD ["pnpm", "run", "prod"]
CMD ["sh", "-c", "./replace-title.sh && pnpm run prod"]
Loading