From 79fffd88f42a1ed0c2613bb49f9a56a8e67eb482 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 19 Apr 2026 11:31:44 +0800 Subject: [PATCH] Use configurable video canvas prompts --- .../video-canvas-settings-client.tsx | 129 ++++++++++-------- .../canvas/LiblibVideoCanvasReplica.tsx | 58 ++++---- 2 files changed, 99 insertions(+), 88 deletions(-) diff --git a/app/(admin)/settings/video-canvas/video-canvas-settings-client.tsx b/app/(admin)/settings/video-canvas/video-canvas-settings-client.tsx index f4282fe52..f9743b16d 100644 --- a/app/(admin)/settings/video-canvas/video-canvas-settings-client.tsx +++ b/app/(admin)/settings/video-canvas/video-canvas-settings-client.tsx @@ -175,68 +175,77 @@ export function VideoCanvasSettingsClient() { -
- {functions.map((item) => ( - - -
-
- - {item.label} - - {functionKindLabels[item.kind]} - - - {item.route} - - - {item.description} +
+
+

功能预设提示词

+

+ 视频画布运行时会通过 /api/video-canvas/config 读取这里保存的提示词。比如“多机位九宫格”的分镜规则、黑色分割线要求和镜头说明,都由管理员在这里维护,前端不再写死覆盖。 +

+
+ +
+ {functions.map((item) => ( + + +
+
+ + {item.label} + + {functionKindLabels[item.kind]} + + + {item.route} + + + {item.description} +
+
+ + updateFunction(item.key, { enabled: checked })} + /> +
-
- - updateFunction(item.key, { enabled: checked })} - /> +
+
+ + updateFunction(item.key, { model: event.target.value })} + placeholder="留空使用全局默认模型" + value={item.model || ""} + /> +
+
+ + + updateFunction(item.key, { creditCost: Number(event.target.value || 0) }) + } + type="number" + value={item.creditCost ?? 0} + /> +
-
-
-
- - updateFunction(item.key, { model: event.target.value })} - placeholder="留空使用全局默认模型" - value={item.model || ""} - /> -
-
- - - updateFunction(item.key, { creditCost: Number(event.target.value || 0) }) - } - type="number" - value={item.creditCost ?? 0} - /> -
-
-
- - -