fix(canvas): 渠道模型配置 - 补齐能力标签显示函数
This commit is contained in:
1 parent
229bc01867
commit
f41c103f48
1 file changed
+4
@@ -171,3 +171,7 @@ function defaultProtocolForModel(channel: ModelChannel, model: string): ModelPro
|
|||||||
if (modelMatchesCapability(model, "image")) return "openai-image";
|
if (modelMatchesCapability(model, "image")) return "openai-image";
|
||||||
return "chat-completion";
|
return "chat-completion";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function capabilityLabel(value: ModelCost["capability"]) {
|
||||||
|
return { text: "文本", image: "图片", video: "视频", audio: "音频", "": "待配置" }[value] || "待配置";
|
||||||
|
}
|
||||||
Reference in new issue
Block a user