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
JustSong
42451d9d02
refactor: update logging related logic
2023-09-17 15:39:46 +08:00
JustSong
621eb91b46
chore: pass through error out
2023-09-03 21:31:58 +08:00
JustSong
c3dc315e75
feat: add batch update support ( close #414 )
2023-09-03 14:58:20 +08:00
JustSong
86c2627c24
fix: update cache immediately after cache get
...
Co-authored-by: chikasaki <1347283135@qq.com>
Co-authored-by: Cruel <157922018@qq.com>
2023-08-16 23:40:50 +08:00
JustSong
cac61b9f66
Revert "fix: add lock when update quota ( close #399 )"
...
This reverts commit eae9b6e607
.
2023-08-13 00:51:48 +08:00
igophper
4ef5e2020c
fix: fix baidu's embedding api ( #398 )
...
* fix:judge baidu embeddings input type
* chore: add back update all channels balance
* chore: update default configuration for sql connection
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-13 00:45:04 +08:00
JustSong
e0b4f96b5b
feat: support PostgreSQL now
2023-08-12 19:20:12 +08:00
JustSong
eae9b6e607
fix: add lock when update quota ( close #399 )
2023-08-12 18:25:18 +08:00
JustSong
7bddc73b96
perf: flush response after response handled ( close #364 )
2023-08-12 18:10:15 +08:00
JustSong
466005de07
fix: set connection limits for database
2023-08-12 10:05:25 +08:00
ckt
3fca6ff534
feat: support email domain whitelist ( #337 )
...
* feat: support email domain restriction
* fix(SMTPToken): disable password auto complete
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-30 12:44:41 +08:00
JustSong
889af8b2db
fix: fix redemption can be used multiple times in some cases
2023-07-23 19:34:23 +08:00
JustSong
4eea096654
chore: do not hardcode cache time ( close #302 )
2023-07-23 19:26:37 +08:00
JustSong
35cfebee12
feat: retry on failed ( close #112 )
2023-07-15 19:06:51 +08:00
JustSong
d17bdc40a7
fix: use transaction to protect redeem process
2023-07-07 21:26:45 +08:00
JustSong
701aaba191
feat: able to approximate token ( close #207 )
2023-07-04 19:54:13 +08:00
JustSong
0cea9e6a6f
fix: fix channel search is not working with MySQL
2023-06-29 21:46:13 +08:00
JustSong
aabc546691
fix: fix the wrong message when channel is deleted
2023-06-29 11:27:34 +08:00
JustSong
737672fb0b
fix: update cached user quota after post-consuming ( close #204 )
2023-06-27 19:22:58 +08:00
JustSong
0941e294bf
feat: support model remap now
2023-06-27 13:42:45 +08:00
mrhaoji
f0dc7f3f06
fix: InitChannelCache does not filter disabled channels ( #201 )
...
* chore: Show the HTTP status code in the test_time script to determine the success or failure of the request.
* fix: InitChannelCache does not filter disabled channels
* chore: do not hardcode
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-25 23:14:15 +08:00