123 Commits

Author SHA1 Message Date
1808837298@qq.com
783c60ee4d feat: Enhance channel status update with success tracking and dynamic notification #812 2025-03-06 17:46:03 +08:00
1808837298@qq.com
276f9991c5 fix: channels model_mapping 2025-02-06 19:51:33 +08:00
1808837298@qq.com
c8a8526ff3 feat: modify channel model_mapping column type to TEXT
- Change `ModelMapping` column type from varchar(1024) to TEXT in channels table
- Add MySQL migration script to alter column type during database initialization
- Improve database schema flexibility for storing complex model mappings
2025-02-06 14:35:14 +08:00
delph1s
7244adada5 fix: try to fix pgsql #685 2025-01-02 00:14:16 +08:00
CalciumIon
0a845ae69f fix: try to fix pgsql #682 2024-12-31 02:10:19 +08:00
CalciumIon
fe29ca04d5 feat: Implement batch tagging functionality for channels
- Added a new endpoint to batch set tags for multiple channels, allowing users to update tags efficiently.
- Introduced a new `BatchSetChannelTag` function in the controller to handle incoming requests and validate parameters.
- Updated the `BatchSetChannelTag` method in the model to manage database transactions and ensure data integrity during tag updates.
- Enhanced the ChannelsTable component in the frontend to support batch tag setting, including UI elements for user interaction.
- Updated localization files to include new translation keys related to batch operations and tag settings.
2024-12-25 14:19:00 +08:00
CalciumIon
7569947544 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
8514572452 Update channel.go 2024-12-17 14:30:31 +08:00
xqx333
5664d55702 Update channel.go 2024-12-17 12:11:24 +08:00
CalciumIon
0ad03de153 feat: implement channel settings configuration
fix #620
2024-12-15 15:52:41 +08:00
CalciumIon
727236e6e7 fix: 渠道标签开启下使用ID排序出错 2024-12-09 20:38:03 +08:00
CalciumIon
c296dfbe0e feat: 兼容渠道搜索下标签聚合功能 2024-12-06 22:03:50 +08:00
CalciumIon
d2fc3fa739 feat: add tag aggregation mode to channels API and UI 2024-12-01 09:24:43 +08:00
CalciumIon
31df701579 feat: 完善标签编辑 2024-11-29 23:58:31 +08:00
CalciumIon
6463ad6976 fix: search channel #442 2024-11-19 01:39:27 +08:00
CalciumIon
325de98738 feat: 渠道标签分组 2024-11-19 01:13:18 +08:00
FENG
276cced99c fix: sqlite group 查询兼容 2024-08-09 11:39:19 +08:00
CalciumIon
3dd248c923 fix: 修复mysql兼容问题 2024-08-08 20:45:41 +08:00
FENG
b01c15229f fix: 渠道多分组,优化分组 like 查询 2024-08-05 22:35:16 +08:00
CalciumIon
a1284e4a58 chore: 优化自动禁用代码 2024-08-03 17:32:28 +08:00
CalciumIon
b9099b8555 fix: error channel name on notify. #338 2024-07-31 18:20:13 +08:00
CalciumIon
cbb79a5bc1 fix: channel default test model 2024-07-08 17:06:29 +08:00
1808837298@qq.com
69ceb3cac3 feat: log channel status update time 2024-06-16 14:53:39 +08:00
1808837298@qq.com
9254997601 fix panic 2024-06-16 13:38:36 +08:00
1808837298@qq.com
3085e512cd feat: 记录自动禁用原因 (close #300) 2024-06-15 01:11:03 +08:00
CaIon
3721ed796c feat: support aws claude 2024-04-23 11:44:40 +08:00
CaIon
90620827f4 feat: 状态码复写 2024-04-20 21:05:23 +08:00
CaIon
b0dcea7ee6 feat: able to set default test model (#138) 2024-04-04 17:29:25 +08:00
1808837298@qq.com
5cd2c572c2 feat: 解决渠道密钥长度限制问题 2024-03-04 14:55:26 +08:00
1808837298@qq.com
eff61d87b1 feat: Add channel search by model field (close #72) 2024-03-01 21:57:52 +08:00
CaIon
85a1540a2e fix: 减少group和model字段长度为64 2024-01-08 10:08:20 +08:00
CaIon
433f7affe9 feat: 加入渠道加权随机功能 2023-12-27 19:00:47 +08:00
CaIon
ffbde7d751 支持设置模型按次计费 2023-12-21 20:14:04 +08:00
CaIon
2b48477d2e 修改docker-compose.yml 2023-12-18 23:46:04 +08:00
CaIon
a12421ebe2 添加批量删除渠道功能 2023-12-14 16:35:03 +08:00
CaIon
f9495e91ea 更新渠道管理 2023-12-05 18:15:40 +08:00
Calcium-Ion
f439c4d553 Merge branch 'songquanpeng:main' into main 2023-10-30 16:12:09 +08:00
Bryan
58b6c88f7b fix: fix postgresql support (#606)
* fix postgresql support

fixes #517

* fix: fix pg support

* chore: delete useless code

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
CaIon
ba7e6324d3 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	README.md
#	go.mod
#	go.sum
#	model/log.go
#	web/src/App.js
#	web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
JustSong
63bd941d99 feat: able to delete all disabled channels 2023-10-14 17:25:48 +08:00
JustSong
cfd3093b95 feat: able to delete all manually disabled channels (close #539) 2023-10-02 13:06:27 +08:00
JustSong
e159737938 chore: sync model schema 2023-09-29 18:13:57 +08:00
CaIon
7b4f42f4fb feat: 优先优先级排序渠道 2023-09-27 01:17:43 +08:00
CaIon
7c8f8da385 feat: 优先用优先级排序渠道 2023-09-27 01:03:53 +08:00
CaIon
cba411ee9e feat: 渠道新可选是否自动禁用功能 2023-09-25 18:44:10 +08:00
Calcium-Ion
7188dedd27 Merge branch 'songquanpeng:main' into main 2023-09-18 22:52:10 +08:00
JustSong
0de79e31d7 fix: add default value for base url 2023-09-18 22:49:05 +08:00
JustSong
1661d34f7b fix: fix unable to set zero value for base url & model mapping 2023-09-18 22:07:17 +08:00
JustSong
ebdab831e6 fix: fix priority not updated & random choice not working 2023-09-18 21:43:45 +08:00
CaIon
23d9554415 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	controller/log.go
#	controller/relay-audio.go
#	controller/relay-image.go
#	controller/relay-text.go
#	controller/relay.go
#	middleware/distributor.go
#	model/log.go
#	web/src/components/OperationSetting.js
2023-09-17 20:59:12 +08:00