Commit Graph

246 Commits

Author SHA1 Message Date
RockYang
4e65a5b1a1 opt: optimize the layout for regiseter page. add function to disable registration 2023-08-02 17:44:13 +08:00
RockYang
b09d23f97f feat: the dashboard page is ready for admin console 2023-08-02 16:37:47 +08:00
RockYang
3529649ba9 refactor: refactor admin console page layout 2023-08-02 15:00:18 +08:00
RockYang
fdd659f393 fix: fixed bug for chat request's token reach the max token limit for OpenAI 2023-08-01 17:58:03 +08:00
RockYang
9eb8da2789 feat: new function for add user in manger console user list page 2023-08-01 16:02:49 +08:00
RockYang
54fe4b7588 opt: optimize the build script and docker-compose yaml file 2023-07-31 17:31:02 +08:00
RockYang
a18188876c feat: allow user to login with username and mobile no 2023-07-27 15:37:50 +08:00
RockYang
1a6afcd266 fix: fix bug for mobile verify code function not available in register page 2023-07-27 10:29:59 +08:00
RockYang
f567831d92 style: adjust reward image styles 2023-07-26 17:57:19 +08:00
RockYang
cf36ca4285 chore: optimize build script, compress reward img 2023-07-26 17:48:16 +08:00
RockYang
0e4ae01498 feat: add reset password function to user list page 2023-07-26 15:22:11 +08:00
RockYang
c5be114db2 feat: 完成人机交互验证 API 接入,增加短信防刷验证 2023-07-25 17:00:24 +08:00
RockYang
cab955c292 feat: 头条,微博热搜等函数 API 实现 2023-07-25 15:02:43 +08:00
RockYang
ca8c8e6490 opt: 取消强制手机号验证,更新配置 2023-07-24 18:18:09 +08:00
RockYang
253951b4b3 feat: 完成众筹后台管理功能 2023-07-24 15:59:29 +08:00
RockYang
e02badf7bb feat: reward verify is ready 2023-07-21 22:29:14 +08:00
RockYang
dd88622c64 feat: 增加打赏核销功能 2023-07-21 18:26:51 +08:00
RockYang
3e41edd3b5 feat: 支持上下文深度配置,计算每轮对话消耗的总 token 数量 2023-07-15 18:37:25 +08:00
RockYang
9126cfff20 refactor: 更改 OpenAI 请求 Body 数据结构,兼容函数调用请求 2023-07-15 18:00:40 +08:00
RockYang
9806d5ff4c chore: small fixs 2023-07-14 18:00:01 +08:00
RockYang
da14632794 opt: add tip message when no available key 2023-07-06 10:47:36 +08:00
RockYang
5037df744f fix: 取消 ElMessage 的 appendTo 属性,防止被 Dialog 组件覆盖 2023-07-04 17:59:55 +08:00
RockYang
da88a501ad opt: 优化验证码发送逻辑,加入防刷验证 2023-07-04 17:15:02 +08:00
RockYang
a49d54d66c feat: 短信验证码功能已完成,手机端同步实现。 2023-07-03 15:18:15 +08:00
RockYang
ce0267e25b opt: 将短信发送按钮封装成组件 2023-07-03 06:55:15 +08:00
RockYang
9088d22a66 feat: 注册短信验证码验证功能已经开启 2023-07-02 20:51:13 +08:00
RockYang
31c14bf748 feat: 增加用户 token 消耗统计功能 2023-07-01 23:29:24 +08:00
ly307787186
3194becdad
Update Setting.vue
关掉aip-key 必需的验证
2023-06-30 13:20:30 +08:00
RockYang
7eb8c5ec35 fix: 修正前端 user_init_call 字段错误和用户注册初始化头像路径问题 2023-06-28 20:01:44 +08:00
RockYang
296bf63196 fix: 修复 PC 端聊天界面滚动条问题 2023-06-28 18:16:28 +08:00
RockYang
871f5d39e4 docs: 更新文档,新增移动端预览图 2023-06-27 14:28:00 +08:00
RockYang
3f91f37aff fix: 修复 markdown 换行符不解析的 Bug,修复新发布的模型 token 统计失败错误 2023-06-27 14:18:20 +08:00
RockYang
a08981f876 feat: vue-mobile => 完成用户信息修改功能,前后端都添加文件上传功能。 2023-06-27 12:11:55 +08:00
RockYang
5187a43543 feat: vue-mobile => 完成移动端聊天配置功能 2023-06-26 18:18:45 +08:00
RockYang
6a733de556 feat: vue-mobile => 完成会话聊天页面功能,增加主题切换功能 2023-06-26 16:39:00 +08:00
RockYang
b9e9eae93f feat: vue-mobile => 优化聊天记录拍版样式 2023-06-25 18:21:38 +08:00
RockYang
811f12135a feat: vue-mobile => 完善移动端聊天列表页功能 2023-06-25 17:01:04 +08:00
RockYang
d971e95900 opt: 优化前端登录判断逻辑 2023-06-25 09:46:23 +08:00
RockYang
0b6940b121 feat: chat list page for mobile is ready 2023-06-25 06:53:22 +08:00
RockYang
ad0f96fcb1 feat: 完成移动端前段框架搭建 2023-06-24 11:45:26 +08:00
RockYang
063b5655f7 style: 调整聊天侧边栏样式 2023-06-23 18:31:50 +08:00
RockYang
d03ed6570b opt: 优化 docker-compse 构建脚本,修复后端路由 Bug 2023-06-23 18:04:16 +08:00
RockYang
05bdd81646 opt: 抽离 session 验证函数,修正前端路由覆盖 bug 2023-06-23 06:31:25 +08:00
RockYang
da0acfe851 docs: 增加 docker-compose 部署支持 2023-06-22 22:14:18 +08:00
RockYang
2700b63887 style: 调整后台管理框架样式 2023-06-21 18:44:18 +08:00
RockYang
17713d05ec refactor: 更新 iconfont 图标,增加打赏二维码弹窗 2023-06-21 15:34:38 +08:00
RockYang
3674d9da85 refactor: refactor the frame layout of admin module 2023-06-21 14:22:28 +08:00
RockYang
0e6606e469 refactor: user login log list for admin is ready 2023-06-21 06:53:41 +08:00
RockYang
feff1684c4 feat: API Key manage is ready 2023-06-20 18:05:33 +08:00
RockYang
81e08e02ff opt: optimize role sorting 2023-06-20 16:07:26 +08:00
RockYang
f593526bd4 refactor: chat role manage for admin is ready 2023-06-20 11:46:13 +08:00
RockYang
d244ad9983 refactor: user remove is ready for console 2023-06-20 07:08:37 +08:00
RockYang
65a01f4776 refactor: 管理后台用户编辑功能 is ready 2023-06-19 21:53:07 +08:00
RockYang
5f812ae649 refactor: 管理后台用户列表页面重构 2023-06-19 18:23:09 +08:00
RockYang
fda811de97 refactor: 完成管理后台的系统设置页面重构 2023-06-19 15:58:52 +08:00
RockYang
fe7f021ddb feat: admin login page is ready 2023-06-19 11:09:23 +08:00
RockYang
120e54fb29 refactor: refactor controller handler module and admin module 2023-06-19 07:06:59 +08:00
RockYang
cd809d17d3 style: optimize code styles 2023-06-18 15:17:59 +08:00
RockYang
e7fd29b9cb style: optimize styles for change password page 2023-06-17 00:02:49 +08:00
RockYang
7b5cacd6f1 style: add logo at login and register page 2023-06-16 18:14:43 +08:00
RockYang
a3ee7ca2d8 feat: import iconfont styles, change password function is ready 2023-06-16 17:28:21 +08:00
RockYang
6f37024e34 fix: add lock map data structure, fixed bug for 'concurrent map writes' 2023-06-16 15:32:11 +08:00
RockYang
3347b4c990 feat: add footbar for login and register page, add send button for chat page 2023-06-16 13:57:05 +08:00
RockYang
6a2122e1ac chore: compress bg images 2023-06-16 11:14:45 +08:00
RockYang
b06a065d44 fix: fixed bug for ssl websocket url 2023-06-16 10:00:05 +08:00
RockYang
180bd2a1db opt: add email and mobile validation for register 2023-06-15 15:09:00 +08:00
RockYang
06fb7b41b4 opt: automatic get the host for api and websocket from the 'location' var 2023-06-15 14:39:05 +08:00
RockYang
088fd14c03 opt: update the main chat compnent after updating the user profile 2023-06-15 11:29:16 +08:00
RockYang
01d61ab19b refactor: V3 版本重构已基本完成 2023-06-15 09:41:30 +08:00
RockYang
9a72e51a55 chore: 替换文字描述 用户 => 2023-05-09 14:30:09 +08:00
RockYang
fb2108d88b docs: 完善文档 2023-05-06 16:27:44 +08:00
RockYang
4dcae75488 refactor: 重构项目目录结构 2023-05-06 11:35:57 +08:00
RockYang
21adfd441c 修复 ChatFree 重复刷消息的 Bug 2023-05-05 17:45:31 +08:00
RockYang
e60decedd4 修复重复推送打招呼信息的 Bug 2023-05-05 16:54:33 +08:00
RockYang
40bf2b5c1b 后台管理功能已完成 2023-05-05 15:45:40 +08:00
RockYang
868ddc1f37 Chat role manage page is reaady 2023-05-04 18:57:18 +08:00
RockYang
87b225eb4a User manager page is ready 2023-05-04 16:04:36 +08:00
RockYang
7a67af642d 用户列表功能完成 2023-05-03 21:59:19 +08:00
RockYang
fcfe0c7913 系统设置页面功能完成 2023-05-03 09:48:37 +08:00
RockYang
556abf5276 update the data struct of API KEYS 2023-05-02 12:06:02 +08:00
RockYang
523cd4d4c9 重新整理后台管理 API,新增系统管理页面 2023-04-28 16:15:46 +08:00
RockYang
525cd524ba 搭建好管理后台模板 2023-04-28 14:00:36 +08:00
RockYang
82d097cb4a add admin page and welcome page 2023-04-27 18:46:45 +08:00
RockYang
d2201596f6 fixed bug for ctrl + enter key start a new row 2023-04-23 15:00:51 +08:00
RockYang
54dccbef4c render <br> tag for ChatPlus page 2023-04-21 14:20:04 +08:00
RockYang
52398d9b8d 1. 优化 ChatFree 页面左侧会话列表展示逻辑
2. 渲染 Prompt 组件换行符
2023-04-21 14:15:23 +08:00
RockYang
d8bc0fe125 1. 发起 socket 连接时候传入 chatId 来区分会话。
2. Chat-Plus 界面新增复制回复内容按钮。
3. 优化 ChatFree 聊天会话切换和管理逻辑。
2023-04-21 11:21:41 +08:00
RockYang
00db78b446 change ACCESS_KEY header to ACCESS-KEY, add test env file 2023-04-20 18:13:05 +08:00
RockYang
296d83c3a1 optimize the logic for showing chat history 2023-04-20 11:56:33 +08:00
RockYang
efc1ea5d8b optimize the code for change chat session 2023-04-19 21:45:37 +08:00
RockYang
673cdada5a optimize the title for new chat, fixed bug for clear chat history 2023-04-19 19:14:34 +08:00
RockYang
c08cef0765 新增清空聊天记录和退出登录功能 2023-04-19 19:06:26 +08:00
RockYang
3e088cb76f 优化聊天样式 2023-04-19 18:07:38 +08:00
RockYang
a13c1bc669 the function to save user chat history is ready 2023-04-19 17:32:41 +08:00
RockYang
14a351b477 在进行 socket 连接前先关闭之前连接。实现新建会话功能。 2023-04-19 15:18:13 +08:00
RockYang
50ff591dbb 新增复制按钮图标来复制 ChatGPT 回复内容。Golang 后端实现为每个用户订阅聊天角色功能 2023-04-19 10:37:55 +08:00
RockYang
3bf83cd48c the sidebar drawer function is ready 2023-04-18 22:31:02 +08:00
RockYang
8733cdb981 新增免费版 ChatGPT 2023-04-18 17:56:20 +08:00
RockYang
5e0bfc778b 移除 vue-router URL 中的 # 号 2023-04-17 09:56:02 +08:00
RockYang
676457f350 add reply content to clipboard function is ready 2023-04-12 18:32:01 +08:00
RockYang
a88f55372c Optimize the UI of config dialoy 2023-04-12 09:02:39 +08:00
RockYang
aef3414928 fixed bug for re-generate response 2023-04-12 06:29:31 +08:00
RockYang
1db20959e7 The 'stop generate' and 'regenerate response' function is ready 2023-04-11 18:58:27 +08:00
RockYang
a2cf97b039 logout function is ready 2023-04-10 06:44:27 +08:00
RockYang
117f928b56 优化前端界面,新增注销功能 2023-04-09 23:34:16 +08:00
RockYang
5acd0290fa 优化聊天配置对话框样式 2023-04-08 12:09:40 +08:00
RockYang
02a1912bba The account set dialog is ready 2023-04-08 12:00:16 +08:00
RockYang
208655af5e 优化登录逻辑 2023-04-08 10:57:46 +08:00
RockYang
df9e587300 more chat role is ready, and add API to add new chat role 2023-04-08 09:39:03 +08:00
RockYang
df7d4d5b94 the new skin is ready 2023-04-07 19:26:24 +08:00
RockYang
5a6f070f92 新增 Plus 黑色风格模板 2023-04-07 17:58:11 +08:00
RockYang
b6d8465127 update web app name for package.json 2023-04-07 11:22:51 +08:00
RockYang
d8cb2c220e 首次登录失败的时候不显示网络连接异常 2023-04-06 08:47:52 +08:00
RockYang
a78fb83f30 优化 websocket 验证和断线重连 2023-04-04 10:32:52 +08:00
RockYang
b0be9f2e4d add qrcode for wechat group 2023-04-03 16:48:29 +08:00
RockYang
f32803deca optimize configuration dialog close action 2023-03-31 08:58:57 +08:00
RockYang
b7120b400a add test env build script 2023-03-30 22:49:32 +08:00
RockYang
7241e2e7ad fixed bug for code hightline 2023-03-30 10:53:00 +08:00
RockYang
d515e88d97 禁用 gin 打印日志 2023-03-29 21:44:44 +08:00
RockYang
bd41f742d2 添加微信和知识星球的推广二维码 2023-03-29 14:27:04 +08:00
RockYang
4e575d01db 优化用户聊天记录显示 2023-03-28 17:19:50 +08:00
RockYang
ebc2041e8a rename Token to User, the chat history function is ready 2023-03-28 16:03:41 +08:00
RockYang
a6bab7b12d 使用 leveldb 存储用户 token 和聊天记录 2023-03-27 18:27:33 +08:00
RockYang
6a38de7eaa 支持添加多个 ChatGPT API 代理地址 2023-03-26 21:10:40 +08:00
RockYang
9ea4060790 do not show the hello message when reconnected 2023-03-26 17:47:10 +08:00
RockYang
a4ea1e47e2 add chat avatar icon for different roles 2023-03-26 12:54:25 +08:00
RockYang
c813399363 add hello messga for chat roles 2023-03-25 22:48:36 +08:00
RockYang
4a3c93c65a 优化角色对话上下文处理 2023-03-25 22:11:53 +08:00
RockYang
43b7191ffa 添加聊天角色支持 2023-03-24 18:14:40 +08:00
RockYang
967ca441d7 添加聊天角色功能 2023-03-24 16:26:24 +08:00
RockYang
bb019f3552 优化聊天会话管理,支持 websocket 断开重连之后能继续连接会话上下文 2023-03-24 14:24:49 +08:00
RockYang
2067aa3f83 add Makefile, fixed websocket url for https 2023-03-23 18:10:23 +08:00
RockYang
a061881d4a 实现 markdown 代码解析和自动高亮 2023-03-23 15:11:02 +08:00
RockYang
c700895d9c add command line arg --config, enable reply default message when the OpenAI API is not available 2023-03-23 11:47:43 +08:00
RockYang
20bdf12180 实现 API Key 负载均衡,修复 WebSocket session 失效问题 2023-03-22 13:51:27 +08:00
RockYang
97acfe57e7 修复 WebSocket 会话问题,使用自己实现的简易会话 2023-03-22 07:24:31 +08:00
RockYang
005d219a8c 添加会话授权支持 2023-03-21 18:12:24 +08:00
RockYang
3bb6814493 优化 ChatGPT API 重试逻辑 2023-03-20 15:02:42 +08:00
RockYang
0ca104bac8 调整配置弹窗 UI 2023-03-20 10:13:11 +08:00
RockYang
aa3a38348f 使用 Element UI 实现会话界面 2023-03-20 07:19:12 +08:00
RockYang
e2c3f50c8a 实现聊天光标闪烁,实现聊天会话上下文 2023-03-19 00:31:35 +08:00
RockYang
59782e9e57 add config update API 2023-03-18 20:20:00 +08:00
RockYang
396b7440fa 接入 ChatGPT API 2023-03-17 18:54:26 +08:00
RockYang
729612275b 优化聊天页面事件处理 2023-03-17 17:49:45 +08:00
RockYang
9477b96629 完成聊天 websocket API 对接 2023-03-17 15:38:05 +08:00
RockYang
c25cc97450 完成前后端框架搭建,完成聊天页面布局 2023-03-17 14:17:27 +08:00