Commit Graph

23 Commits

Author SHA1 Message Date
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
69c590d439 feat: Introduce settings package and refactor constants
- Added a new `setting` package to replace the `constant` package for configuration management, improving code organization and clarity.
- Moved various configuration variables such as `ServerAddress`, `PayAddress`, and `SensitiveWords` to the new `setting` package.
- Updated references throughout the codebase to use the new `setting` package, ensuring consistent access to configuration values.
- Introduced new files for managing chat settings and midjourney settings, enhancing modularity and maintainability of the code.
2024-12-22 17:24:29 +08:00
1808837298@qq.com
9e4133a890 feat: realtime
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
Xyfacai
04a7434f82 fix: 修复 dall-e-2 请求报错 2024-08-24 13:36:41 +08:00
CalciumIon
a7c14a26cc feat: 区分额度不足和预扣费失败提示 2024-08-09 18:48:13 +08:00
CalciumIon
d583529421 feat: 区分额度不足和预扣费失败提示 2024-08-09 18:34:51 +08:00
CalciumIon
58f43d9397 fix: image quota (close #382) 2024-07-26 18:51:34 +08:00
CalciumIon
9def2c6cd8 fix: image relay quota 2024-07-18 17:12:28 +08:00
CalciumIon
dd91799ca9 chore: log format 2024-07-18 00:41:31 +08:00
CalciumIon
d7b34f0816 refactor: image relay 2024-07-17 23:50:37 +08:00
CalciumIon
1d4ebe3921 feat: support cloudflare audio 2024-07-16 23:24:47 +08:00
CalciumIon
35b2a49eb8 fix: channel auto ban 2024-07-04 22:46:43 +08:00
1808837298@qq.com
5c0502835c fix: typo 2024-05-31 15:10:01 +08:00
1808837298@qq.com
313c16f360 refactor: 重构敏感词 2024-05-23 23:59:55 +08:00
CaIon
9d3cd2e1f0 chore: 删除无用代码 2024-05-13 16:04:28 +08:00
CaIon
0fe4c98b3f feat: dalle系列改为使用模型固定价格计费 2024-05-13 16:04:02 +08:00
CaIon
391f0404a5 feat: 日志详情展示模型价格 2024-05-12 15:35:57 +08:00
CaIon
213e659164 feat: dalle系列日志记录更多信息 2024-04-24 15:14:16 +08:00
CaIon
7e46e6785d fix: audio预扣费未返还 2024-04-24 15:08:15 +08:00
CaIon
6ec45751fd refactor: remove consumeQuota 2024-03-13 22:30:10 +08:00
1808837298@qq.com
436afe925e feat: 初步重构完成 2024-02-29 16:21:25 +08:00
1808837298@qq.com
1735981217 feat: 初步重构 2024-02-29 01:08:18 +08:00