jinjianming
f74577141c
fix: fix default token not created in some cases ( #1510 )
...
* 修复git、微信等用户注册不会创建默认令牌问题
修复git、微信等用户注册不会创建默认令牌问题
* 修复git、微信等用户注册不会创建默认令牌问题
删除普通用户注册代码
* fix: do not block if error happened
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-06-13 00:20:48 +08:00
Zhong Liu
c1971870fa
fix: support for Spark Lite model ( #1526 )
...
* fix: Support for Spark Lite model
* fix: fix panic
* fix: fix xunfei version config
---------
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-06-13 00:07:26 +08:00
JustSong
9026ec7510
feat: support cloudflare now
2024-04-26 23:05:48 +08:00
JustSong
0b8ccb94eb
chore: reorganize common package
2024-04-06 02:03:59 +08:00
JustSong
8f4d78e24d
chore: reorganize billing related package
2024-04-06 01:26:48 +08:00
JustSong
2ab7d25a80
chore: reorganize helper related package
2024-04-06 01:02:35 +08:00
JustSong
9a2662af0d
feat: show token info when quota is not enough ( close #1274 )
2024-04-05 12:42:14 +08:00
JustSong
4d61b9937b
feat: support feishu login now
2024-04-05 12:10:43 +08:00
JustSong
c49778c254
feat: now able to limit ip range for token now ( close #1275 )
2024-04-05 10:09:16 +08:00
JustSong
0a37aa4cbd
docs: add API docs
2024-04-05 01:10:30 +08:00
JustSong
8b9fa3d6e4
fix: fix GetGroupModels
2024-04-04 02:58:21 +08:00
JustSong
dc7aaf2de5
feat: able to set model limitation for token ( close #178 )
2024-04-04 02:08:18 +08:00
JustSong
5e81e19bc8
fix: fix SQL channel selection algo ( #1197 )
2024-03-27 19:09:27 +08:00
Benny
9821bc7281
feat: add user list sorting and pagination enhancements ( #1178 )
...
* feat: add user list sorting and pagination enhancements
* feat: add user list sorting for THEME=air
* feat: add token list sorting and pagination enhancements
* feat: add token list sorting for THEME=air
2024-03-17 19:25:36 +08:00
JustSong
08831881f1
feat: increase initial root user quota and support INITIAL_ROOT_TOKEN now ( #1105 )
2024-03-17 19:09:44 +08:00
JustSong
752639560f
feat: able to use separated database for table logs
2024-03-15 00:30:15 +08:00
JustSong
79d0cd378a
fix: fix baidu system prompt ( close #1079 )
2024-03-13 22:56:54 +08:00
JustSong
e99150bdb9
fix: make quota int64
2024-03-13 20:00:51 +08:00
JustSong
a72e5fcc9e
fix: when cached quota is too low, force refresh it
2024-03-13 19:38:44 +08:00
JustSong
0710f8cd66
fix: when cached quota is too low, force refresh it
2024-03-13 19:26:24 +08:00
JustSong
a90161cf00
chore: drop idx_channels_key on start
2024-03-11 02:24:58 +08:00
JustSong
358920c858
fix: remove index idx_channels_key ( close #644 )
2024-03-10 23:27:22 +08:00
JustSong
796be42487
feat: update ratio config if missing
2024-03-10 19:29:42 +08:00
JustSong
5b50eb94e5
feat: able to send alert message via message pusher ( close #993 )
2024-03-10 19:16:06 +08:00
JustSong
71c61365eb
feat: able to only test disabled channels ( #1090 )
2024-03-10 18:34:57 +08:00
JustSong
6ebc99460e
fix: add user to blacklist when it's banned or deleted, and make deletion soft ( close #473 , close #791 )
2024-03-10 15:56:19 +08:00
JustSong
f05b403ca5
feat: use real system prompt now ( close #1079 )
2024-03-10 14:32:30 +08:00
JustSong
2df877a352
feat: switch priority when retry ( close #1048 )
2024-03-03 22:14:07 +08:00
JustSong
f141a37a9e
fix: fix "error update user quota cache: Error 1040: Too many connections"
2024-02-25 16:58:14 +08:00
JustSong
de9a58ca0b
refactor: use config field to save config
2024-02-18 02:22:50 +08:00
JustSong
2cd1a78203
chore: update module name
2024-01-28 19:38:58 +08:00
JustSong
ea407f0054
feat: able to set completion ration now ( close #968 )
2024-01-28 16:45:54 +08:00
JustSong
2d760d4a01
refactor: refactor relay part ( #957 )
...
* refactor: refactor relay part
* refactor: refactor config part
2024-01-21 23:21:42 +08:00
JustSong
eed9f5fdf0
refactor: refactor relay part ( #935 )
2024-01-14 19:21:03 +08:00
JustSong
f2c51a494c
feat: able to login via email ( close #921 )
2024-01-14 14:08:39 +08:00
Calcium-Ion
8a4d6f3327
fix: remove useless wrong index ( #916 )
...
* add sqlite busy_timeout=3000
* chore: update impl
* fix: fix JSON tag in Log struct
* fix: 修复高并发下,高额度用户使用低额度令牌没有预扣费而导致令牌大额欠费
* Revert "fix: 修复高并发下,高额度用户使用低额度令牌没有预扣费而导致令牌大额欠费"
This reverts commit f0ffe14437
.
* fix: remove wrong index
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-01-14 13:48:16 +08:00
JustSong
86261cc656
feat: able to change theme
2024-01-07 17:53:05 +08:00
JustSong
8491785c9d
chore: remove useless logging
2024-01-07 17:13:24 +08:00
JustSong
e848a3f7fa
fix: fix error loading stats ( #912 )
2024-01-07 17:10:59 +08:00
Buer
48989d4a0b
feat: add new theme berry ( #860 )
...
* feat: add theme berry
* docs: add development notes
* fix: fix blank page
* chore: update implementation
* fix: fix package.json
* chore: update ui copy
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-01-07 14:20:07 +08:00
Seven Yu
6227eee5bc
fix: fix token validation exception handling #901
...
* fix: fix exception handling
1. add error log for ValidateUserToken
2. update en.json
* chore: update log
---------
Co-authored-by: seven.yu <seven.yu@dji.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-01-07 13:32:39 +08:00
Bryan
40ceb29e54
fix: fix SearchUsers not working if using PostgreSQL ( #778 )
...
* fix SearchUsers
* refactor: using UsingPostgreSQL as condition
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-24 16:42:00 +08:00
Calcium-Ion
7d6a169669
feat: able to set sqlite busy_timeout ( #818 )
...
* add sqlite busy_timeout=3000
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-17 19:17:00 +08:00
Tillman Bailee
a3f80a3392
feat: enable channel when test succeed ( #771 )
...
* 增加功能: 渠道 - 测试所有通道; 设置 - 运营设置 - 监控设置 - 成功时自动启用通道
* refactor: update implementation
---------
Co-authored-by: liyujie <29959257@qq.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-03 20:10:57 +08:00
Dafei Zhao
58bb3ab6f6
fix: fix channel_id column name ( #681 , close #688 )
2023-11-10 21:50:52 +08:00
Bryan
a398f35968
fix: fix postgresql support ( #606 )
...
* fix postgresql support
fixes #517
* fix: fix pg support
* chore: delete useless code
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
JustSong
824444244b
feat: able to delete all disabled channels
2023-10-14 17:25:48 +08:00
JustSong
f073592d39
fix: fix request count not updated correctly when using batch update
2023-10-14 15:04:52 +08:00
JustSong
8d34b7a77e
feat: able to delete all manually disabled channels ( close #539 )
2023-10-02 13:06:27 +08:00
JustSong
cbd62011b8
chore: add database migration prompt
2023-10-02 12:13:30 +08:00