From f41c103f48f60e5a6b8d2b29f64ce16e4f921f3f Mon Sep 17 00:00:00 2001 From: ddCat <2695092045@qq.com> Date: Thu, 6 Aug 2026 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E6=B8=A0=E9=81=93=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E9=85=8D=E7=BD=AE=20-=20=E8=A1=A5=E9=BD=90=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/settings/channel-video-pricing.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/pages/settings/channel-video-pricing.tsx b/web/src/pages/settings/channel-video-pricing.tsx index dc33a7654..f0c2ff527 100644 --- a/web/src/pages/settings/channel-video-pricing.tsx +++ b/web/src/pages/settings/channel-video-pricing.tsx @@ -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] || "待配置"; +}