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
JustSong
4701897e2e
chore: sync database indices with pro version
2023-10-02 12:11:02 +08:00
JustSong
53b2cace0b
chore: sync model schema
2023-09-29 18:13:57 +08:00
JustSong
f9b748c2ca
chore: add MEMORY_CACHE_ENABLED env variable
2023-09-29 11:38:27 +08:00
igophper
8651451e53
fix: sum null to 0 ( #541 )
...
Co-authored-by: igophper <admin@jialilgu.cn>
2023-09-19 22:39:54 +08:00
JustSong
1c5bb97a42
fix: fix gorm expression
...
Co-authored-by: 初音控灬 <xyfacai@gmail.com>
2023-09-18 23:11:37 +08:00
JustSong
de868e4e4e
fix: fix gorm expression
...
Co-authored-by: 初音控灬 <xyfacai@gmail.com>
2023-09-18 23:07:59 +08:00
JustSong
1d258cc898
fix: add default value for base url
2023-09-18 22:49:05 +08:00
JustSong
37e09d764c
fix: fix random selection is not working when directly using database
2023-09-18 22:39:10 +08:00
JustSong
159b9e3369
fix: fix unable to set zero value for base url & model mapping
2023-09-18 22:07:17 +08:00
JustSong
a5647b1ea7
fix: fix priority not updated & random choice not working
2023-09-18 21:43:45 +08:00
Xyfacai
ecf8a6d875
feat: supprt channel priority now & record channel id in log ( #484 )
...
* feat: 支持设置渠道优先级 & 日志中显示使用的渠道ID
* fix: 设置渠道优先级未更新 ability
* chore: update implementation
---------
Co-authored-by: Xiangyuan Liu <xiangyuan.liu@ui.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-17 19:18:16 +08:00
JustSong
328aa68255
feat: able to delete logs now ( close #486 )
2023-09-17 17:09:56 +08:00