fix(ci): 代码格式 - 修复画布变更文件的 Prettier 校验

Refs #220
This commit is contained in:
ddCat committed 2026-08-14 12:44:58 +08:00
1 parent af609f4a3e
commit b726620b4d
4 files changed
+57 -37

No files matched your search

+4 -1
View File
@@ -45,7 +45,10 @@ export function ModelPicker({ config, value, onChange, capability, className, fu
key: channel.id,
label: channel.name || "未命名渠道",
scope: channel.scope === "system" ? "系统渠道" : "自定义渠道",
models: groupModelsByDisplayName(config, options.filter((model) => resolveModelChannel(config, model).id === channel.id)),
models: groupModelsByDisplayName(
config,
options.filter((model) => resolveModelChannel(config, model).id === channel.id),
),
}))
.filter((group) => group.models.length);
const groupedModels = new Set(channelGroups.flatMap((group) => group.models.flatMap((modelGroup) => modelGroup.models)));