CalciumIon
966cdc1f7f
refactor: user cache logic
2024-12-29 16:50:26 +08:00
CalciumIon
0d1ba65592
refactor: migrate group ratio and user usable groups logic to new setting package
...
- Replaced references to common.GroupRatio and common.UserUsableGroups with corresponding functions from the new setting package across multiple controllers and services.
- Introduced new setting functions for managing group ratios and user usable groups, enhancing code organization and maintainability.
- Updated related functions to ensure consistent behavior with the new setting package integration.
2024-12-25 19:31:12 +08:00
CalciumIon
72be58523c
feat: Add request start time context key and update middleware
...
- Introduced a new constant `ContextKeyRequestStartTime` to store the request start time in the context, enhancing request tracking.
- Updated the `Distribute` middleware to set the request start time in the context using the new constant.
- Modified the `GenRelayInfo` function to retrieve the request start time from the context, ensuring accurate timing information is used in relay operations.
2024-12-23 20:48:10 +08:00
CalciumIon
0ad03de153
feat: implement channel settings configuration
...
fix #620
2024-12-15 15:52:41 +08:00
CalciumIon
270857e370
feat: support br
2024-12-04 23:53:02 +08:00
CalciumIon
407d03a0ba
feat: support gzip
2024-12-04 23:24:46 +08:00
CalciumIon
c0c9b1f670
fix: realtime
2024-11-30 23:32:42 +08:00
licoy
af1f0a406d
feat: 增加GLOBAL_API_RATE_LIMIT_ENABLE与GLOBAL_WEB_RATE_LIMIT_ENABLE环境变量,支持是否开启访问速率控制
2024-11-12 20:02:33 +08:00
1808837298@qq.com
9e4133a890
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
1808837298@qq.com
698b6ed7d7
Update dto
...
(cherry picked from commit 030187ff75c64c40017cda2fa98ef2b3c01f0bd5)
2024-11-05 19:23:56 +08:00
1808837298@qq.com
347cbf63bb
fix: 修复用户可选分组不能选择用户分组 ( close #528 )
2024-10-14 16:22:22 +08:00
1808837298@qq.com
411bbac036
feat: Playground相关接口禁用AccessToken
2024-09-26 01:49:35 +08:00
1808837298@qq.com
07fa9205cb
feat: playground
2024-09-26 00:59:09 +08:00
1808837298@qq.com
a50d2e6836
fix: error user role
2024-09-24 17:49:57 +08:00
CalciumIon
e5ee955f70
fix: token group #477
2024-09-18 18:55:11 +08:00
CalciumIon
4a02eb1b7f
feat: 令牌分组
2024-09-18 05:19:49 +08:00
CalciumIon
6d2948d684
feat: 添加令牌ip白名单功能
2024-09-17 20:49:51 +08:00
CalciumIon
b8664e71e6
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
165f29ade5
fix bug
2024-08-07 02:50:22 +08:00
CalciumIon
cba830e544
feat: log user id
2024-08-04 14:35:16 +08:00
CalciumIon
a1284e4a58
chore: 优化自动禁用代码
2024-08-03 17:32:28 +08:00
CalciumIon
658eba659b
chore: 优化relay代码
2024-08-03 16:55:29 +08:00
CalciumIon
ff3c1a0d34
feat: print user id when error
2024-07-27 17:55:36 +08:00
CalciumIon
3f2df317e4
feat: print user id when error
2024-07-27 17:47:30 +08:00
CalciumIon
28397c5d82
fix: 修复nginx缓存导致串用户问题
2024-07-19 13:39:05 +08:00
Calcium-Ion
363ae95196
Merge pull request #367 from Calcium-Ion/audio
...
feat: support cloudflare tts
2024-07-17 17:34:59 +08:00
CalciumIon
3ada91855f
fix: distribute panic
2024-07-17 17:01:25 +08:00
CalciumIon
1d4ebe3921
feat: support cloudflare audio
2024-07-16 23:24:47 +08:00
CalciumIon
ee0e1c9736
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
fe4665fd99
feat: support cloudflare worker ai
2024-07-13 19:55:22 +08:00
CalciumIon
35b2a49eb8
fix: channel auto ban
2024-07-04 22:46:43 +08:00
Xiangyuan Liu
05a4646b44
feat: suno api 支持
...
feat: 调试 suno
feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
CaIon
97acc9e5c4
feat: add pricing page
2024-05-13 23:02:35 +08:00
CaIon
90620827f4
feat: 状态码复写
2024-04-20 21:05:23 +08:00
CaIon
5f85956316
fix: distributor panic
2024-04-08 13:48:36 +08:00
CaIon
9ba6abedd9
fix: select channel
2024-04-07 22:08:11 +08:00
CaIon
b0dcea7ee6
feat: able to set default test model ( #138 )
2024-04-04 17:29:25 +08:00
CaIon
fb992eeeac
feat: 本地重试
2024-04-04 16:35:44 +08:00
Xiangyuan Liu
d30187e24f
feat: 支持 /mj-{mode} 路径
2024-03-29 16:48:50 +08:00
我秦始皇
621006d1d5
fix: make the 'openai_organization' parameter actually work.
2024-03-18 02:19:59 -07:00
我秦始皇
d667248960
fix: make the 'openai_organization' parameter actually work.
2024-03-18 02:11:21 -07:00
CaIon
8a632b7825
feat: 兼容自定义变焦,完善modal操作
2024-03-14 16:42:37 +08:00
CaIon
5659e5720f
feat: 将操作拆分成单独的模型
2024-03-13 21:19:48 +08:00
CaIon
259c7fcdb0
feat: 初步兼容midjourney-proxy-plus
2024-03-13 15:37:01 +08:00
1808837298@qq.com
1735981217
feat: 初步重构
2024-02-29 01:08:18 +08:00
1808837298@qq.com
a0e35256fb
feat: 记录更多的错误信息
2024-02-22 19:42:33 +08:00
CaIon
d498445dfd
chore: check before get userGroup
2024-01-25 20:10:32 +08:00
CaIon
0266cf4b7e
fix: 修复渠道一致性问题
2024-01-12 14:36:15 +08:00
CaIon
d72d8852cd
fix: 完善令牌预扣费逻辑
2024-01-11 14:12:48 +08:00
CaIon
ac78d4ba98
fix: 修复高并发下,高额度用户使用低额度令牌没有预扣费的问题
2024-01-10 14:23:23 +08:00