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} - /> -
-
-
- - -