CalciumIon
a7e1d17c3e
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
borland
a02bc3342f
Update user.go
2024-12-22 00:03:00 +08:00
borland
f54d0cb3b0
Update user.go
2024-12-22 00:02:28 +08:00
CalciumIon
2d865eb735
refactor: Improve channel status update logic and clean up code
...
- Simplified conditional checks in UpdateChannelStatusById function in channel.go to enhance readability.
- Commented out unused image number check in relay-gemini.go for clarity.
- Updated JSON field in en.json for currency consistency, changing "元" from "RMB/CNY" to "CNY" and added a space in "实付金额:" for formatting.
2024-12-17 15:33:16 +08:00
xqx333
1f4fc2d590
Update channel.go
2024-12-17 14:30:31 +08:00
xqx333
173c9bc669
Update channel.go
2024-12-17 12:11:24 +08:00
xqx333
739c0cc334
Update cache.go
2024-12-17 12:10:05 +08:00
CalciumIon
f2809917f8
feat: implement channel settings configuration
...
fix #620
2024-12-15 15:52:41 +08:00
CalciumIon
6625563f80
feat: Enhance quota data handling and CSS styling
...
- Updated the `increaseQuotaData` function to include `tokenUsed` parameter for better quota tracking.
- Modified the `GetAllQuotaDates` function to sum `token_used` alongside `count` and `quota` for comprehensive data retrieval.
- Improved CSS styles for better layout responsiveness, including padding adjustments for navigation elements and description cards.
2024-12-12 16:18:14 +08:00
CalciumIon
56ccb30a94
fix: 渠道标签开启下使用ID排序出错
2024-12-09 20:38:03 +08:00
CalciumIon
aa82adc5a9
feat: 兼容渠道搜索下标签聚合功能
2024-12-06 22:03:50 +08:00
CalciumIon
88b0e6a768
feat: add tag aggregation mode to channels API and UI
2024-12-01 09:24:43 +08:00
CalciumIon
9c4d30602c
feat: 完善标签编辑
2024-11-29 23:58:31 +08:00
CalciumIon
807385d3d1
fix: search channel #442
2024-11-19 01:39:27 +08:00
CalciumIon
0ce600ed49
feat: 渠道标签分组
2024-11-19 01:13:18 +08:00
licoy
450bea8f2c
修复独立日志数据库查询令牌日志时错误问题
2024-11-12 16:22:13 +08:00
seefs001
046f859d92
feat: integrate Linux DO OAuth authentication
2024-11-10 23:56:22 +08:00
1808837298@qq.com
89ddf83b44
feat: 弃用旧的聊天配置
2024-10-12 21:09:59 +08:00
1808837298@qq.com
9a4ca1e210
feat: playground
2024-09-26 00:59:09 +08:00
1808837298@qq.com
972ac1ee0f
fix: 第三方登录注销 #500
2024-09-25 17:13:28 +08:00
1808837298@qq.com
05d9aa61df
feat: 不自动生成系统访问令牌
2024-09-25 16:31:25 +08:00
1808837298@qq.com
221894d972
fix: error user role
2024-09-24 17:49:57 +08:00
1808837298@qq.com
ed972eef06
feat: pricing page support multi groups #487
2024-09-22 17:44:57 +08:00
CalciumIon
052bc2075b
feat: 令牌分组
2024-09-18 05:19:49 +08:00
CalciumIon
f505afdc10
feat: 添加令牌ip白名单功能
2024-09-17 20:49:51 +08:00
CalciumIon
d0f76a5c61
feat: support gpt-4o-gizmo-* ( close #436 )
2024-08-16 17:25:03 +08:00
CalciumIon
8cd8cc29bc
fix: log page 'Cannot read properties of undefined (reading 'length')'
2024-08-14 22:43:57 +08:00
Calcium-Ion
1b900e3917
Merge pull request #426 from OswinWu/fix-log-page
...
Fix log page
2024-08-13 17:50:03 +08:00
liuzhifei
d82bd20354
support log db
2024-08-13 10:29:55 +08:00
Nothing.
228104e848
Merge branch 'Calcium-Ion:main' into fix-log-page
2024-08-11 11:22:34 +08:00
OswinWu
a2af637e7f
fix: log分页问题
2024-08-11 11:21:34 +08:00
CalciumIon
9e45dbe964
fix: close #422
2024-08-09 16:14:05 +08:00
FENG
9452be51b9
fix: sqlite group 查询兼容
2024-08-09 11:39:19 +08:00
CalciumIon
04f0084d97
fix: 修复mysql兼容问题
2024-08-08 20:45:41 +08:00
FENG
190316f66e
fix: 渠道多分组,优化分组 like 查询
2024-08-05 22:35:16 +08:00
CalciumIon
67878731fc
feat: log user id
2024-08-04 14:35:16 +08:00
CalciumIon
5acf074541
chore: 优化自动禁用代码
2024-08-03 17:32:28 +08:00
CalciumIon
3b1745c712
feat: 优化日志查询条件
2024-08-01 16:33:59 +08:00
CalciumIon
c92ab3b569
feat: 日志新增rpm和tpm数据。( close #384 )
2024-08-01 16:13:08 +08:00
CalciumIon
1501ccb919
fix: error channel name on notify. #338
2024-07-31 18:20:13 +08:00
CalciumIon
12da7f64cd
feat: update log search
2024-07-19 16:04:56 +08:00
CalciumIon
e84300f4ae
chore: gopool
2024-07-19 01:07:37 +08:00
CalciumIon
f55f63f412
fix: email login
2024-07-09 21:36:31 +08:00
CalciumIon
49cec50908
fix: channel default test model
2024-07-08 17:06:29 +08:00
CalciumIon
03b130f2b5
feat: 允许设置是否检测mj任务已完成才可进行action操作 ( close #349 )
2024-07-08 16:48:10 +08:00
CalciumIon
45b9de9df9
feat: able to use email to login (close #343,#348)
2024-07-08 16:28:56 +08:00
CalciumIon
bd7222118a
feat: 记录兑换时兑换码的ID ( close #286 )
2024-07-05 20:57:32 +08:00
CalciumIon
7011083201
feat: 统计无限令牌的已用额度 ( close #308 )
2024-07-05 20:28:17 +08:00
CalciumIon
752048dfb4
feat: 统计无限令牌的已用额度 ( close #308 )
2024-07-05 20:25:33 +08:00
CalciumIon
d767ae04ff
chore: 重构
2024-06-27 19:30:17 +08:00