fix(canvas): 渠道模型配置 - 补齐能力标签显示函数

This commit is contained in:
ddCat
2026-08-06 16:50:41 +08:00
parent 229bc01867
commit f41c103f48

View File

@@ -171,3 +171,7 @@ function defaultProtocolForModel(channel: ModelChannel, model: string): ModelPro
if (modelMatchesCapability(model, "image")) return "openai-image";
return "chat-completion";
}
function capabilityLabel(value: ModelCost["capability"]) {
return { text: "文本", image: "图片", video: "视频", audio: "音频", "": "待配置" }[value] || "待配置";
}