feat(canvas): 模型选择 - 支持彩色展示标签并优化目录与积分交互
This commit is contained in:
10
web/src/lib/model-tags.ts
Normal file
10
web/src/lib/model-tags.ts
Normal 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"] };
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user