1808837298@qq.com
d2a0d9f73b
feat: update tiktoken
2024-05-30 21:45:58 +08:00
CaIon
e6765ef32d
feat: update cache
2024-04-18 20:30:17 +08:00
CaIon
65b85377c6
feat: update cache #204
2024-04-18 20:23:44 +08:00
CaIon
462c328d4b
feat: 支持未开启缓存下本地重试
2024-04-06 20:45:18 +08:00
CaIon
4b60528c5f
feat: 本地重试
2024-04-04 16:35:44 +08:00
1808837298@qq.com
06b746a740
fix: remove useless code
2024-03-02 23:02:49 +08:00
1808837298@qq.com
4c43012e6c
fix: Improve handling of small weights in channel selection logic
2024-03-02 22:46:26 +08:00
CaIon
4920922929
fix: fix redis error
2024-01-26 16:09:50 +08:00
CaIon
70bdb8ca90
fix: fix redis error
2024-01-26 15:52:23 +08:00
CaIon
ac3e27859c
feat: token缓存逻辑更新(实验性)
2024-01-25 20:09:06 +08:00
CaIon
e2a1caba4c
fix: 修复渠道一致性问题
2024-01-12 14:36:15 +08:00
GAI Group
6aadcf0c78
fix: the Redis problem in the CacheGetUsername function
...
fix: the Redis problem in the CacheGetUsername function
2024-01-12 13:15:43 +08:00
CaIon
f07b9f8ab2
chore: cache username
2024-01-11 18:40:44 +08:00
CaIon
bdd611fd33
feat: 加入渠道加权随机功能
2023-12-27 19:00:47 +08:00
Xyfacai
fd4ef086dc
fix: 优化 mj 获取进度
2023-12-23 23:14:58 +08:00
CaIon
44465a398b
support gpts
2023-12-11 19:50:43 +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
f9b748c2ca
chore: add MEMORY_CACHE_ENABLED env variable
2023-09-29 11:38:27 +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
621eb91b46
chore: pass through error out
2023-09-03 21:31:58 +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
4eea096654
chore: do not hardcode cache time ( close #302 )
2023-07-23 19:26:37 +08:00
JustSong
737672fb0b
fix: update cached user quota after post-consuming ( close #204 )
2023-06-27 19:22:58 +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
JustSong
00151a0124
chore: format logs
2023-06-22 10:59:01 +08:00
JustSong
6d961064d2
feat: do not access database before response return ( close #158 )
2023-06-21 17:26:26 +08:00
JustSong
ba54c71948
feat: select channel without database ( #158 )
2023-06-21 17:04:18 +08:00
JustSong
14b85318a6
fix: fix crash when Redis is enabled
2023-06-20 20:56:35 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
3d76a974d1
feat: use cache to avoid database access ( #158 )
2023-06-20 19:09:49 +08:00