feat(canvas): 模型选择 - 支持彩色展示标签并优化目录与积分交互

This commit is contained in:
ddCat
2026-09-21 11:11:10 +08:00
parent d5ff22258e
commit b8eefdad70
31 changed files with 410 additions and 63 deletions

10
web/src/lib/model-tags.ts Normal file
View File

@@ -0,0 +1,10 @@
export const modelTagColors = [
{ value: "purple", label: "紫色" },
{ value: "blue", label: "蓝色" },
{ value: "green", label: "绿色" },
{ value: "gold", label: "金色" },
{ value: "orange", label: "橙色" },
{ value: "pink", label: "粉色" },
] as const;
export type ModelTag = { text: string; color: typeof modelTagColors[number]["value"] };

View File

@@ -139,6 +139,7 @@ export function systemChannelModelChannels(channels: PublicChannelCatalog[]): Mo
model: model.modelKey,
displayName: model.displayName,
channelLabel: model.channelLabel,
tags: model.tags || [],
description: model.description || "",
icon: model.icon || "",
capability: model.capability as ModelCapability,