Commit Graph

58 Commits

Author SHA1 Message Date
1808837298@qq.com
0fcd243f56 feat: Add user notification settings with quota warning and multiple notification methods
- Implement user notification settings with email and webhook options
- Add new user settings for quota warning threshold and notification preferences
- Create backend API and database support for user notification configuration
- Enhance frontend personal settings with notification configuration UI
- Support custom notification email and webhook URL
- Add service layer for sending user notifications
2025-02-18 14:54:21 +08:00
CalciumIon
0a845ae69f fix: try to fix pgsql #682 2024-12-31 02:10:19 +08:00
CalciumIon
2de4de0006 fix redis 2024-12-30 22:05:41 +08:00
CalciumIon
aefd53b683 refactor: token cache logic 2024-12-30 17:10:48 +08:00
CalciumIon
966cdc1f7f refactor: user cache logic 2024-12-29 16:50:26 +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
07fa9205cb feat: playground 2024-09-26 00:59:09 +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
cba830e544 feat: log user id 2024-08-04 14:35:16 +08:00
CalciumIon
c19767b915 feat: 统计无限令牌的已用额度 (close #308) 2024-07-05 20:28:17 +08:00
CalciumIon
e78289d10b feat: 统计无限令牌的已用额度 (close #308) 2024-07-05 20:25:33 +08:00
1808837298@qq.com
893dafb89f feat: 支持设置worker访问请求中的图片地址 2024-05-28 17:59:53 +08:00
CaIon
9df64bcad4 fix: try to fix sqlite database migration (#231) 2024-05-16 16:10:25 +08:00
CaIon
92ad9eb159 feat: update cache 2024-04-18 20:26:38 +08:00
CaIon
dac6849603 feat: update cache #204 2024-04-18 20:23:44 +08:00
CaIon
b0eeeedacf fix: 请求阿里通义千问异常 (close #108) 2024-03-11 14:35:46 +08:00
1808837298@qq.com
4b5266eb73 feat: 优化令牌无效提示 2024-02-22 01:48:35 +08:00
CaIon
a2873b6d67 feat: token缓存逻辑更新(实验性) 2024-01-25 20:09:06 +08:00
CaIon
8d9e04427b feat: 可设置令牌能调用的模型 2024-01-08 16:25:17 +08:00
CaIon
f74a89fc7d log输出更多有效信息 2023-12-20 20:53:36 +08:00
CaIon
d6d4623f77 消费日志添加用户调用前余额 2023-12-07 16:58:24 +08:00
CaIon
f08fac740d 修复令牌添加、搜索bug 2023-11-25 17:30:36 +08:00
CaIon
3eb7843b2e 完善个人中心 2023-11-21 16:35:51 +08:00
CaIon
a7bac4f1fd Merge branch 'main' into latest 2023-11-15 21:07:37 +08:00
CaIon
28fe74d76c try to fix email 2023-11-15 18:27:42 +08:00
luxl
b2dd63f9a0 Update token.go 2023-11-14 16:41:19 +08:00
CaIon
04fe42c634 修复余额不足邮件提醒bug 2023-11-12 18:51:26 +08:00
CaIon
4994a4a6fd 修复令牌bug 2023-11-10 00:46:17 +08:00
CaIon
4c1a23d65a 完善兑换码界面 2023-11-10 00:10:41 +08:00
JustSong
fa0fedff5c chore: pass through error out 2023-09-03 21:31:58 +08:00
JustSong
cf0ae05d50 feat: add batch update support (close #414) 2023-09-03 14:58:20 +08:00
JustSong
393443dd16 Revert "fix: add lock when update quota (close #399)"
This reverts commit 7216aabedc.
2023-08-13 00:51:48 +08:00
JustSong
7216aabedc fix: add lock when update quota (close #399) 2023-08-12 18:25:18 +08:00
JustSong
24bdbe117a feat: able to display token billing stat via billing api (close #186) 2023-06-23 20:14:53 +08:00
JustSong
b7a89340e1 chore: format logs 2023-06-22 10:59:01 +08:00
JustSong
64a6ce6383 chore: update api message 2023-06-21 15:55:00 +08:00
JustSong
cdc91ccb0c chore: update api message 2023-06-21 15:54:06 +08:00
JustSong
b220e8e863 feat: use cache to avoid database access (#158) 2023-06-20 19:09:49 +08:00
JustSong
282753dc12 chore: make the user unable to search token by id 2023-06-19 10:04:38 +08:00
JustSong
cbf339284c feat: support group now (close #17, close #72, close #85, close #104, close #136)
Co-authored-by: quzard <1191890118@qq.com>
2023-06-07 23:26:00 +08:00
JustSong
4172e9b682 feat: the format of key is now constant with that of OpenAI 2023-06-03 10:53:25 +08:00
JustSong
91e5f3d9e0 feat: support dummy sk- prefix for token (#82) 2023-05-17 17:04:06 +08:00
JustSong
afbf20b5ba fix: fix quota not consuming 2023-05-16 13:29:22 +08:00
JustSong
bcb4862a19 refactor: bind quota to account instead of token (close #64, #31) 2023-05-16 11:26:09 +08:00
JustSong
929f87d11a fix: delete a token with a negative quota will now update the account's quota correctly (close #51) 2023-05-11 20:05:49 +08:00
JustSong
7bd4c0e490 fix: return quota to user when delete token (close #37) 2023-05-04 10:20:39 +08:00
JustSong
bcdfb7d0d9 feat: now use token as the unit of quota (close #33) 2023-04-28 16:58:55 +08:00
JustSong
aa18ac4864 refactor: use quota instead of times 2023-04-28 14:57:20 +08:00
JustSong
4bcc5f54f2 fix: fix MySQL syntax error (#54) 2023-04-27 11:10:10 +08:00