Commit Graph

16 Commits

Author SHA1 Message Date
CaIon
ff2b497c05 support gpts 2023-12-11 19:50:43 +08:00
Bryan
58b6c88f7b 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
51db57677e chore: add MEMORY_CACHE_ENABLED env variable 2023-09-29 11:38:27 +08:00
JustSong
ebdab831e6 fix: fix priority not updated & random choice not working 2023-09-18 21:43:45 +08:00
Xyfacai
ead3b915ca 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
fa0fedff5c chore: pass through error out 2023-09-03 21:31:58 +08:00
JustSong
8cfc5eeb97 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
819056a8af chore: do not hardcode cache time (close #302) 2023-07-23 19:26:37 +08:00
JustSong
da94aade10 fix: update cached user quota after post-consuming (close #204) 2023-06-27 19:22:58 +08:00
mrhaoji
640cc2df91 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
b7a89340e1 chore: format logs 2023-06-22 10:59:01 +08:00
JustSong
02bc73066c feat: do not access database before response return (close #158) 2023-06-21 17:26:26 +08:00
JustSong
6c579a6053 feat: select channel without database (#158) 2023-06-21 17:04:18 +08:00
JustSong
27d33d2392 fix: fix crash when Redis is enabled 2023-06-20 20:56:35 +08:00
JustSong
a6cc0226a7 feat: able to display quota in dollar 2023-06-20 20:09:17 +08:00
JustSong
b220e8e863 feat: use cache to avoid database access (#158) 2023-06-20 19:09:49 +08:00