fix(canvas): 渠道模型配置 - 补齐能力标签显示函数
This commit is contained in:
@@ -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] || "待配置";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user