Commit Graph

338 Commits

Author SHA1 Message Date
RockYang
9f98660423 docs: update build script 2023-11-27 18:24:52 +08:00
RockYang
f4fbe67db9 feat: implements image function replace Mj with DALL-E-3 2023-11-26 20:37:48 +08:00
RockYang
599ce0eade feat: add type field for api key 2023-11-24 18:05:59 +08:00
RockYang
11f3ab8dc7 feat: add support for registing use force use invite code 2023-11-24 12:02:28 +08:00
RockYang
86bbea337d opt: 增加中间件自动对HTTP请求的参数去掉首尾空格 2023-11-23 17:50:55 +08:00
RockYang
e63a30064b opt: optimize styles for invitation page 2023-11-23 17:40:15 +08:00
RockYang
222b1ddbd9 feat: add invitation and promotion functions 2023-11-23 16:30:15 +08:00
RockYang
191e3b7d2c feat: 支持讯飞大模型 v3.0 2023-11-23 07:11:13 +08:00
RockYang
13fbbc190a feat: reset password function is ready 2023-11-22 18:00:45 +08:00
RockYang
61c6a6e7f3 feat: add copy code btn in chat page, fixed bug for code wrap in model of ChatGLM and XunFei 2023-11-22 17:00:43 +08:00
RockYang
af41350eb9 fix: fixed bug for enable user vip in admin console not work 2023-11-22 11:30:58 +08:00
RockYang
8f63e348b3 option: replace leveldb with redis in storing message code 2023-11-22 10:57:24 +08:00
tongkunming
e11736e1d2 fix: remove dead code 2023-11-21 22:18:53 +08:00
RockYang
c062fba69c chore: remove dead code 2023-11-21 19:04:53 +08:00
RockYang
daaff8974e docs: update readme and config sample files 2023-11-16 17:20:38 +08:00
RockYang
4fcbd511c0 fix: fix bug with missing chat context 2023-11-15 18:20:34 +08:00
RockYang
998f67ac5d fix: deducating the user's img call quota after stable diffusion callback 2023-11-14 08:59:39 +08:00
RockYang
712a6b6c39 chore: change xxl-job name 2023-11-12 15:39:12 +08:00
RockYang
2525a22d78 fix: fix bug for issue 49, stable diffusion service not decrease img_calls 2023-11-11 11:00:26 +08:00
RockYang
05f501af52 Merge branch 'alipay' 2023-11-10 16:51:00 +08:00
RockYang
e94fa4844f docs: export database, update readme doc, remove useless configs for alipay 2023-11-10 16:49:07 +08:00
RockYang
e0965aae5e feat: add switch to disable xxl-job service, update readme 2023-11-10 15:22:35 +08:00
RockYang
414c1de963 feat: 增加订单倒计时组件,自动清理过期未支付订单 2023-11-10 14:39:27 +08:00
RockYang
b589102be8 feat: add system configration switch option for order pay service, support sandbox env for alipay 2023-11-09 18:28:56 +08:00
RockYang
df367e0d47 feat: check if the user's chat quota is gt than current chat model required before starting a conversation 2023-11-09 16:56:44 +08:00
RockYang
ef87487f60 fix: fix bug for token expired with QiNiu oss upload file 2023-11-08 21:14:09 +08:00
RockYang
8bafe72434 feat: adjust layout for user profile page 2023-11-08 18:33:26 +08:00
RockYang
76dcc69e44 feat: order payment function is ready 2023-11-08 17:48:07 +08:00
tongkunming
682ef22194 fix: 添加messages为空校验 2023-11-08 16:51:36 +08:00
RockYang
ee8dd41605 feat: update stable diffusion api version 2023-11-08 14:54:10 +08:00
RockYang
d0b8d666e4 feat: finish payment page layout 2023-11-07 18:10:28 +08:00
RockYang
848a10c3a8 feat: integrated Alipay payment module 2023-11-06 17:55:46 +08:00
RockYang
a9b5280691 opt:update mj api version, wrapper chat api error message as a constant 2023-11-06 15:03:56 +08:00
RockYang
7677ae254f feat: different AI model consuming different amounts of use_calls 2023-10-26 14:38:06 +08:00
RockYang
01205af018 feat: 支持文心4.0模型,不同的用户可以订阅不同的AI模型 2023-10-26 13:41:49 +08:00
RockYang
5b5150e6d4 feat: add system configration item to close rewarding function 2023-10-19 11:19:29 +08:00
RockYang
a80d01209c opt: adjust styles for ItemList component, cut string for chat role's hello message 2023-10-16 10:46:10 +08:00
RockYang
d2a8d655c8 feat: finish adding chat role to user function 2023-10-16 06:56:42 +08:00
RockYang
80e2b34abc opt: adjust ItemList component styles 2023-10-15 15:47:42 +08:00
RockYang
ebdec4fa44 feat: create chat app list page, build the layout of page 2023-10-13 18:05:40 +08:00
RockYang
ead8dbbaa5 feat: auto login when register successfully 2023-10-13 16:27:40 +08:00
RockYang
c7daaa00cd feat: image wall stable diffusion image list component is ready 2023-10-13 15:16:40 +08:00
RockYang
9fcd686fda feat: image wall page is ready 2023-10-12 18:09:50 +08:00
RockYang
1759fd4cf9 opt: close websocket connection when finish a chat call for XunFei API 2023-10-12 10:02:12 +08:00
RockYang
12e7837602 feat: XunFei ai mode api implements is ready 2023-10-11 18:17:03 +08:00
RockYang
ff349f2edf feat: adjust package struct, put chat code the seperate 'chatimpl' package, fix bug: baidu api chat context number must be even number 2023-10-11 15:46:40 +08:00
RockYang
088d8ca207 feat: add system configration for enable/disable funciton in chat session 2023-10-11 14:35:47 +08:00
RockYang
c37902d3a4 finish baidu ai model api implementation 2023-10-11 14:21:16 +08:00
RockYang
da38684cdd add baidu ai model api configrations 2023-10-10 18:19:56 +08:00
RockYang
d53c8f9830 docs: add 3.1.4 release version change logs 2023-10-09 12:05:51 +08:00
RockYang
c8136d4231 doc: update database sql file 2023-10-08 20:44:55 +08:00
RockYang
e4b8380530 docs: udpate readme and config.toml template 2023-10-08 18:09:46 +08:00
RockYang
fbd599194c feat: add system config item for reward image, add app config item to use custom text2img param json file 2023-10-08 17:48:50 +08:00
RockYang
0270ec26fb feat: add configuration handler for AliYun SMS signature and template ID 2023-10-08 12:01:09 +08:00
RockYang
c89f23b018 feat: stable diffusion page function is ready 2023-10-06 22:25:37 +08:00
RockYang
f971ec5d34 fix: fixed bug for generating the upload file path 2023-10-05 18:09:42 +08:00
RockYang
c5776ce41f feat: stable diffusion page is ready 2023-09-28 18:09:45 +08:00
RockYang
75c5ebbffa feat: migrate the chatgpt-plus-ext project code to this project 2023-09-27 18:14:07 +08:00
RockYang
d51a724ade feat: add implements for stable diffusion service 2023-09-26 18:16:51 +08:00
RockYang
c1143d7a6d fix: fixed bug for register error with parse args 2023-09-26 09:30:18 +08:00
RockYang
f3697431a4 fix: fixed bug for add user in admin console page that calls and img_calls parameter not work 2023-09-22 18:15:32 +08:00
RockYang
e3d6e5f420 feat: the upload handler for AliYun OSS is ready 2023-09-22 09:56:45 +08:00
RockYang
fa42d03a65 some page ui optimization, add release v3.1.3 2023-09-20 11:39:11 +08:00
RockYang
22f7de2c09 fix socket connect for mj task notify 2023-09-20 06:59:30 +08:00
RockYang
b4b9df81cb opt: add sessionId for mj task 2023-09-19 18:15:08 +08:00
RockYang
2a71c2b0e7 feat: mj advance drawing page function is ready, use better task scheduling argorithm 2023-09-17 18:03:45 +08:00
RockYang
c37b3d3df5 feat: add task type params for add new mj task 2023-09-16 14:01:53 +08:00
RockYang
4112426848 feat: midjourney page task and image list component is ready 2023-09-15 17:40:39 +08:00
RockYang
382d7bfaa1 feat: add ImageMj page view 2023-09-13 18:04:31 +08:00
RockYang
3daf2f7738 feat: optimize mj notidy api, use job queue to send ai drawing request 2023-09-13 15:50:00 +08:00
RockYang
944d35971d feat: chat chrawing function is refactored 2023-09-13 06:57:25 +08:00
RockYang
9ce8af0b82 feat: refactor MidJourney service for conpatible drawing in chat and draw in app 2023-09-12 18:01:24 +08:00
RockYang
d825b9ec26 fix: fixed bug for jwt token expire caculation 2023-09-12 10:49:55 +08:00
RockYang
3cc8c3284a opt: optimize the styles of chat page; caculate all tokens of context as chat history's token 2023-09-11 13:34:20 +08:00
RockYang
81fe768f6a opt: refactor the web page's router and layout 2023-09-08 22:14:58 +08:00
RockYang
8923779ab0 opt: return error when download mj image failed 2023-09-08 21:02:21 +08:00
RockYang
583218a045 opt: add lock for mj task callback 2023-09-08 18:12:18 +08:00
RockYang
153b2bfa53 opt: add lock for mj task callback 2023-09-08 17:23:32 +08:00
RockYang
0a9b325360 opt: Only create actived upload service 2023-09-08 06:46:24 +08:00
RockYang
0e31726fd3 fix: remove username and nickname field for updating user info 2023-09-07 15:41:01 +08:00
RockYang
9bd83f3acf use absolute path for all routes 2023-09-07 10:27:18 +08:00
RockYang
e3d18643b8 opt: clear space in the reward transfer number 2023-09-06 17:09:55 +08:00
RockYang
2f318bbe9f feat: add QiNiu OSS storage implements 2023-09-06 14:37:13 +08:00
RockYang
fac7eb61b3 remove username search for console user list page 2023-09-05 17:52:46 +08:00
RockYang
e4e7868b30 fix: 采用弹窗的方式显示验证码,解决验证码在低分辨率下被掩盖的Bug 2023-09-05 16:47:40 +08:00
RockYang
3d7fa680cb docs: update change log and create a new release version 2023-09-05 14:28:30 +08:00
RockYang
c38035e25e fix: replace session handler with jwt authorization 2023-09-05 11:47:03 +08:00
RockYang
8d4fdaf902 refactor: refactor mobile pages for the chat model updating 2023-09-04 18:15:56 +08:00
RockYang
2820adad53 feat: allow user to set custom api keys for different platforms 2023-09-04 17:34:29 +08:00
RockYang
f7a427d2c0 refactor: refactor chat model, replace mode value with mode id. refactored system config module, add seperate configration for every chat model 2023-09-04 16:32:20 +08:00
RockYang
59ed8c9660 refactor: refactor chat_handler, add support for Azure and ChatGLM 2023-09-04 06:43:15 +08:00
RockYang
ac3151af92 chore: update bin file name 2023-08-22 22:18:07 +08:00
RockYang
1189ad7862 feat: change order by for login log and reward records 2023-08-22 22:04:46 +08:00
RockYang
5a8503ec14 chore: remove debug codes 2023-08-21 10:55:49 +08:00
RockYang
e44f95724d doc: update readme docs 2023-08-21 06:57:04 +08:00
RockYang
dec0d0dea7 feat: delete the old avatar image file when update the user profile 2023-08-21 06:27:30 +08:00
RockYang
46f96e94ec feat: add oss service factory implements, add support for setting custom upload handler, localstorage and minio oss 2023-08-20 22:29:08 +08:00
RockYang
89b30bcf58 opt: optimize code for remove chat item 2023-08-20 19:06:18 +08:00
RockYang
473d8f5f85 feat: add minio service implementation, download midjourney image to local storage 2023-08-20 16:17:42 +08:00
RockYang
08d8d65599 opt:Optimize the algorithm to check whether Midjourney images can continue to variation 2023-08-17 14:20:16 +08:00
RockYang
75ab8552d9 chore: show img_calls num for user profile page 2023-08-17 07:09:53 +08:00
RockYang
b78d5b3d03 docs: update docs 2023-08-17 06:55:11 +08:00
RockYang
064081c771 feat: add authorization for MidJourney function calls 2023-08-16 23:16:44 +08:00
RockYang
9d9ee7c585 opt: unset timeout for websocket connection 2023-08-15 18:29:53 +08:00
RockYang
e65c32c4c7 feat: midjourney image variation function is ready 2023-08-15 17:31:02 +08:00
RockYang
113769791f feat: midjourney image upscale function is ready 2023-08-15 15:28:40 +08:00
RockYang
5d2a1d21d5 feat: midjourney drawing image function is ready 2023-08-14 17:59:21 +08:00
RockYang
6e40f92aaf feat: add midjourney message receive handler 2023-08-14 07:09:52 +08:00
RockYang
302cb8a5be feat: add midjouney api implements, optimize function calls 2023-08-11 18:46:56 +08:00
RockYang
0b27890484 feat: remove wechat bot, replace with api callback for receive wechat payment transactions 2023-08-10 17:24:23 +08:00
RockYang
3d6d46b30d feat: chat export function is ready 2023-08-04 12:08:07 +08:00
RockYang
0c8157dbc0 feat: add rewards statistic in dashboard page 2023-08-03 10:19:37 +08:00
RockYang
d7b278f2f7 opt: add enabled_msg_service config var to system config database 2023-08-03 10:04:45 +08:00
RockYang
e04856f794 opt: optimize the layout for regiseter page. add function to disable registration 2023-08-02 17:44:13 +08:00
RockYang
d7bbfb0fc3 feat: the dashboard page is ready for admin console 2023-08-02 16:37:47 +08:00
RockYang
8d39234fd0 fix: fixed bug for chat request's token reach the max token limit for OpenAI 2023-08-01 17:58:03 +08:00
RockYang
0fce1c0fd8 feat: new function for add user in manger console user list page 2023-08-01 16:02:49 +08:00
RockYang
9eafd3e6ca feat: add env var to set log level 2023-07-31 08:34:11 +08:00
RockYang
e7ac26ff5a feat: update system config cache for AppServer when updating system config in admin console 2023-07-31 08:13:20 +08:00
RockYang
fad78641d6 add system config cache for AppServer object 2023-07-31 06:56:28 +08:00
RockYang
a32cb0142b feat: allow user to login with username and mobile no 2023-07-27 15:37:50 +08:00
RockYang
4a3c133152 fix: deauthorize some apis 2023-07-27 10:53:14 +08:00
RockYang
ae79c34508 fix: fix bug for mobile verify code function not available in register page 2023-07-27 10:29:59 +08:00
RockYang
4b77280c65 feat: add reset password function to user list page 2023-07-26 15:22:11 +08:00
RockYang
9bee2a90f9 feat: 完成人机交互验证 API 接入,增加短信防刷验证 2023-07-25 17:00:24 +08:00
RockYang
cd6a811bbd feat: 头条,微博热搜等函数 API 实现 2023-07-25 15:02:43 +08:00
RockYang
84f9a83f55 opt: 取消强制手机号验证,更新配置 2023-07-24 18:18:09 +08:00
RockYang
2efc669ab2 feat: 完成众筹后台管理功能 2023-07-24 15:59:29 +08:00
RockYang
5444ed77ad chore: add error log for reading chat response buffer 2023-07-24 12:05:38 +08:00
RockYang
dd71fe80a5 opt: record user_id for reward verify 2023-07-22 08:42:30 +08:00
RockYang
b73092eb64 feat: reward verify is ready 2023-07-21 22:29:14 +08:00
RockYang
aa28f87b0c feat: 增加打赏核销功能 2023-07-21 18:26:51 +08:00
RockYang
1e1bcd4a30 feat: 集成微信收款服务 2023-07-20 17:46:32 +08:00
RockYang
d24b3c46bf put logs in log file 2023-07-20 16:36:12 +08:00
RockYang
37222f07d9 fix: 修复阿里云短信发送失败的 bug 2023-07-16 16:05:11 +08:00
RockYang
49646a79e5 fix: 用户使用自己绑定的 API 调用,则不计算 calls 和 token 消耗 2023-07-16 11:55:45 +08:00
RockYang
d8ff5987dd feat: plugin function is ready 2023-07-15 21:52:30 +08:00
RockYang
d014d418e9 feat: 支持上下文深度配置,计算每轮对话消耗的总 token 数量 2023-07-15 18:37:25 +08:00
RockYang
cc1b56501d refactor: 更改 OpenAI 请求 Body 数据结构,兼容函数调用请求 2023-07-15 18:00:40 +08:00
RockYang
3630099234 feat: 完成每日早报函数开发 2023-07-10 18:59:53 +08:00
RockYang
941a24c75b fix: fixed conflicts 2023-07-10 10:11:17 +08:00
RockYang
d9e340ddc4 refactor: 调整项目目录结构,移除其他语言 API 目录 2023-07-10 09:42:11 +08:00
RockYang
beee1e91d6 test: add plugin test code 2023-07-10 07:05:56 +08:00
RockYang
35935d2bac fixed conflicts 2023-07-06 10:49:38 +08:00
RockYang
5d0b0ad33e opt: add tip message when no available key 2023-07-06 10:47:36 +08:00
RockYang
d1a6ac531f opt: add tip message when no available key 2023-07-06 10:34:01 +08:00
RockYang
fa733afa51 opt: 优化验证码发送逻辑,加入防刷验证 2023-07-04 17:15:02 +08:00
RockYang
440169ff60 feat: 短信验证码功能已完成,手机端同步实现。 2023-07-03 15:18:15 +08:00
RockYang
1fc361242e opt: 将短信发送按钮封装成组件 2023-07-03 06:55:15 +08:00
RockYang
72cc6f3d75 feat: 注册短信验证码验证功能已经开启 2023-07-02 20:51:13 +08:00
RockYang
a2b1924e00 Merge branch 'main' into prod 2023-07-02 00:04:59 +08:00
RockYang
32484bd32e feat: 增加用户 token 消耗统计功能 2023-07-01 23:29:24 +08:00
RockYang
12c1ff65e9 opt: remove chat role info from user login api's response 2023-06-30 18:52:43 +08:00
RockYang
946563d3b2 chore: add test code for fix role icon url of db 2023-06-29 08:58:19 +08:00
RockYang
3f2ef1d54e fix: 修正前端 user_init_call 字段错误和用户注册初始化头像路径问题 2023-06-28 20:01:44 +08:00
RockYang
161b11e428 opt: 优化启动参数接收处理 2023-06-28 05:51:55 +08:00
RockYang
f7748d51df opt: 通过环境变量来传参,修正 docker compose 配置参数 2023-06-27 18:29:46 +08:00
RockYang
92e52a2284 fix: 修复 markdown 换行符不解析的 Bug,修复新发布的模型 token 统计失败错误 2023-06-27 14:18:20 +08:00
RockYang
3efd5fb77a feat: vue-mobile => 完成用户信息修改功能,前后端都添加文件上传功能。 2023-06-27 12:11:55 +08:00
RockYang
c3d62bb8d8 feat: vue-mobile => 完成移动端聊天配置功能 2023-06-26 18:18:45 +08:00
RockYang
c099e843d5 feat: vue-mobile => 完成会话聊天页面功能,增加主题切换功能 2023-06-26 16:39:00 +08:00
RockYang
5f3a5871f1 feat: vue-mobile => 优化聊天记录拍版样式 2023-06-25 18:21:38 +08:00
RockYang
d20cc367b8 fixed: go-api => 增加全局错误处理 handler,修复业务处理异常导致服务退出的 Bug 2023-06-25 11:34:55 +08:00
RockYang
eadb9a733f docs: 增加容器部署文档 2023-06-25 11:06:18 +08:00
RockYang
2cadd6af44 feat: chat list page for mobile is ready 2023-06-25 06:53:22 +08:00
RockYang
c8e30383ba refactor: embed xdb file for ip2region 2023-06-22 11:08:44 +08:00
RockYang
a7d5a6ccb9 style: 调整后台管理框架样式 2023-06-21 18:44:18 +08:00
RockYang
40a4ab5410 refactor: refactor the frame layout of admin module 2023-06-21 14:22:28 +08:00
RockYang
54a2181960 refactor: user login log list for admin is ready 2023-06-21 06:53:41 +08:00
RockYang
e490e15bc4 feat: API Key manage is ready 2023-06-20 18:05:33 +08:00
RockYang
469844d97b opt: optimize role sorting 2023-06-20 16:07:26 +08:00
RockYang
892ea29ba8 refactor: chat role manage for admin is ready 2023-06-20 11:46:13 +08:00
RockYang
acde1c6742 refactor: user remove is ready for console 2023-06-20 07:08:37 +08:00
RockYang
07da11d852 refactor: 管理后台用户编辑功能 is ready 2023-06-19 21:53:07 +08:00
RockYang
502b8c2270 refactor: 管理后台用户列表页面重构 2023-06-19 18:23:09 +08:00
RockYang
af3f7ac810 refactor: 完成管理后台的系统设置页面重构 2023-06-19 15:58:52 +08:00
RockYang
935c6caf96 feat: admin login page is ready 2023-06-19 11:09:23 +08:00
RockYang
90bce1d437 refactor: refactor controller handler module and admin module 2023-06-19 07:06:59 +08:00
RockYang
542c908e30 fix: fixed bu for 'slice bounds out of range' 2023-06-16 23:30:04 +08:00
RockYang
7fd0b1fa08 feat: import iconfont styles, change password function is ready 2023-06-16 17:28:21 +08:00
RockYang
111572e3f2 fix: add lock map data structure, fixed bug for 'concurrent map writes' 2023-06-16 15:32:11 +08:00
RockYang
d55925bccd chore: delete bin file 2023-06-16 10:01:34 +08:00
RockYang
0b5adcbfab fix: fixed bug for ssl websocket url 2023-06-16 10:00:05 +08:00
RockYang
8d84562f32 chore: update config sample file 2023-06-15 16:03:42 +08:00
RockYang
e3026062d8 opt: automatic get the host for api and websocket from the 'location' var 2023-06-15 14:39:05 +08:00
RockYang
8a69c69b7f opt: update the main chat compnent after updating the user profile 2023-06-15 11:29:16 +08:00
RockYang
197714a57a refactor: add system config key 'user_init_calls' to init the new register user's api calls 2023-06-15 10:06:21 +08:00
RockYang
567cdc6f8d refactor: V3 版本重构已基本完成 2023-06-15 09:41:30 +08:00