CalciumIon
7180e6f114
feat: Enhance logging functionality with group support
...
- Added a new 'group' parameter to various logging functions, including RecordConsumeLog, GetAllLogs, and GetUserLogs, to allow for more granular log tracking.
- Updated the logs table component to display group information, improving the visibility of log data.
- Refactored related functions to accommodate the new group parameter, ensuring consistent handling across the application.
- Improved the initialization of the group column for PostgreSQL compatibility.
2024-12-24 14:48:11 +08:00
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
CalciumIon
cffaf0d636
feat: Add log information generation and enhance LogsTable component
...
- Introduced `log_info_generate.go` to implement functions for generating various log information, including text, WebSocket, and audio details.
- Enhanced `LogsTable` component to display the 'group' information from the log data, improving the visibility of grouped logs in the UI.
2024-12-21 20:24:22 +08:00
iszcz
c8a29251ac
1
2024-12-04 16:20:42 +08:00
CalciumIon
6d4edc1f5b
fix: realtime
2024-11-30 23:32:42 +08:00
CalciumIon
4131183378
feat: realtime扣费时检测令牌额度
...
(cherry picked from commit 91511b8b64fc0d28dbf657cb97e12b7d1e50070d)
2024-11-07 17:28:53 +08:00
CalciumIon
97fdcd8e8f
feat: 完善audio计费
2024-11-07 16:12:09 +08:00
CalciumIon
cbf0688b80
feat: update model ratio
2024-11-06 19:33:50 +08:00
Xyfacai
be64408a25
fix(realtime): 修复ws 握手失败、计费问题
...
(cherry picked from commit 618dffc43fd5a5f4065944db87761f9ee18e44d3)
2024-11-05 19:28:46 +08:00
1808837298@qq.com
e5c05d77b7
feat: realtime pre consume
...
(cherry picked from commit 273d154e1640bae26b7caedddf1685e9ff21ab74)
2024-11-05 19:28:06 +08:00
1808837298@qq.com
24b3ed50d7
feat: realtime pre consume
...
(cherry picked from commit d87917f8f6eb9d2e144a9f840d6d91767ea2eb69)
2024-11-05 19:28:03 +08:00
1808837298@qq.com
8de79382f0
feat: azure realtime
...
(cherry picked from commit 75ff3d98f06103dc2df1f8817bd3fcbf433e0f20)
2024-11-05 19:27:55 +08:00
1808837298@qq.com
74f9006b40
feat: realtime
...
(cherry picked from commit d4966246e68dbdcdab45ec5c5141362834d74425)
2024-11-05 19:27:47 +08:00
1808837298@qq.com
33af069fae
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
1808837298@qq.com
e3c85572d4
Update dto
...
(cherry picked from commit 030187ff75c64c40017cda2fa98ef2b3c01f0bd5)
2024-11-05 19:23:56 +08:00
CalciumIon
139a104b26
feat: support gpt-4o-audio-preview
2024-11-04 15:27:12 +08:00
1808837298@qq.com
02c0c6501e
feat: update auto disable
2024-10-08 23:15:57 +08:00
CalciumIon
e3b3fdec48
feat: update chatgpt-4o token encoder
2024-09-05 18:35:34 +08:00
CalciumIon
ff0985f06e
fix: channel auto ban #443
2024-08-24 17:23:24 +08:00
CalciumIon
f9392ca904
feat: 避免暴露内部错误
2024-08-14 15:49:33 +08:00
kakingone
2100d8ee0c
addupload
2024-07-31 15:48:51 +08:00
CalciumIon
3875b141c6
fix: gemini stream finish reason ( close #378 )
2024-07-19 17:16:20 +08:00
CalciumIon
e2cf6b1e14
feat: support gpt-4o-mini image tokens
2024-07-19 12:59:37 +08:00
CalciumIon
ae00a99cf5
feat: 媒体请求计费选项
2024-07-18 17:04:19 +08:00
Calcium-Ion
0f94ff47b5
Merge pull request #367 from Calcium-Ion/audio
...
feat: support cloudflare tts
2024-07-17 17:34:59 +08:00
CalciumIon
e3b83f886f
fix: try to fix panic #369
2024-07-17 16:43:55 +08:00
CalciumIon
4d0d18931d
fix: try to fix panic #369
2024-07-17 16:38:56 +08:00
CalciumIon
ebb9b675b6
feat: support cloudflare audio
2024-07-16 23:24:47 +08:00
CalciumIon
7029065892
refactor: 重构流模式逻辑
2024-07-15 18:04:05 +08:00
FENG
d55cb35c1c
fix: http code is not properly disabled
2024-07-14 01:21:05 +08:00
CalciumIon
7b36a2b885
feat: support cloudflare worker ai
2024-07-13 19:55:22 +08:00
CalciumIon
a075598757
fix: stream options
2024-07-08 21:54:32 +08:00
CalciumIon
e8b93ed6ec
feat: support claude stream_options
2024-07-08 01:45:43 +08:00
CalciumIon
6c5b3b51b0
fix: try to fix tencent hunyuan #336
2024-07-05 20:00:52 +08:00
CalciumIon
d4578e28b3
fix: channel auto ban
2024-07-04 22:46:43 +08:00
CalciumIon
d767ae04ff
chore: 重构
2024-06-27 19:30:17 +08:00
CalciumIon
79010dbfc5
feat: 记录流模式首字时间 ( close #323 )
2024-06-26 18:04:49 +08:00
Calcium-Ion
1e2c1ee950
Merge pull request #310 from Calcium-Ion/feat/suno-api
...
Feat/suno api
2024-06-21 14:59:59 +08:00
1808837298@qq.com
5abb0a9c4e
fix: auto ban
2024-06-18 11:03:24 +08:00
1808837298@qq.com
e3f66807ee
feat: auto ban 403
2024-06-16 15:45:41 +08:00
1808837298@qq.com
eb79880502
feat: 记录自动禁用原因 ( close #300 )
2024-06-15 01:11:03 +08:00
Xiangyuan Liu
c993ab2746
feat: suno api 支持
...
feat: 调试 suno
feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
1808837298@qq.com
ecdcb379fe
feat: update token encoder
2024-05-30 23:15:06 +08:00
1808837298@qq.com
4dd5233f49
Merge remote-tracking branch 'origin/main'
2024-05-30 21:46:22 +08:00
1808837298@qq.com
d2a0d9f73b
feat: update tiktoken
2024-05-30 21:45:58 +08:00
1808837298@qq.com
099068f543
feat: 支持设置worker访问请求中的图片地址
2024-05-28 17:59:53 +08:00
1808837298@qq.com
36fac2baa2
feat: 增加重置模型倍率功能 ( close #62 )
2024-05-24 15:28:16 +08:00
1808837298@qq.com
bfbbe67fcd
refactor: 重构敏感词
2024-05-23 23:59:55 +08:00
CaIon
a3de309175
chore: token counter
2024-05-18 15:14:49 +08:00
CaIon
a3b3e6cc38
chore: update InitTokenEncoders ( #255 )
2024-05-15 16:32:00 +08:00