fengsilin
d8272e7707
feat(channel): 添加渠道"对外名称"(public_name)字段
为 Channel 模型新增 public_name 字段,让管理员可以为每个渠道
设置用户可见的友好名称(如"标准通道"、"高速通道"),替代前端
硬编码的"通道一/二/三"。Playground 通道选择器展示对外名称,
"渠道"统一改为"通道"。新建渠道时对外名称必填,编辑时可选。
Co-Authored-By: Claude <noreply@anthropic.com>
1 week geleden
fengsilin
74cc8c0d56
feat(playground): 添加渠道选择功能,支持指定渠道体验模型
- 新增 /api/user/model_channels 接口,返回模型可用渠道及默认渠道
- Playground 设置面板添加渠道选择下拉框
- Distribute 中间件支持从请求体读取 channel_id 指定渠道
- 支持 URL 参数 ?model=xxx 直接选择模型
Co-Authored-By: Claude <noreply@anthropic.com>
1 week geleden
fengsilin
e5ec592c79
fix: use IconPriceTag instead of IconPrice/Tag
1 maand geleden
fengsilin
a5eb9abe1a
feat: 优化渠道创建时模型同步性能
- 批量查询和插入,减少数据库操作
- 统一错误处理
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 maand geleden
fengsilin
2a2647c062
feat: auto-sync channel models to models table on creation/update
When a channel is created or updated, automatically sync its models to the
models table if they don't exist. Models created this way are marked with
SyncOfficial=0 to prevent official sync from overwriting them.
1 maand geleden
unknown
e1f10fec95
add localiazed
2 maanden geleden
winter
08164cd0ae
fix
2 maanden geleden