视频提词优化管理后台配置

This commit is contained in:
2026-06-22 14:39:00 +08:00
parent f62dd8bf67
commit 73567b4143
16 changed files with 1983 additions and 92 deletions
@@ -291,11 +291,16 @@ async def update_module_video_prompt_schema(
if not isinstance(video_config, dict) or not video_config.get("duration") or not video_config.get("aspect_ratio") or not video_config.get("resolution"):
raise HTTPException(status_code=400, detail="缺少第4步视频参数快照,不能安全修改视频 schema")
patched_schema = patch_video_prompt_schema_from_client(
server_schema=server_schema,
client_schema=req.prompt_schema,
video_config=video_config,
)
schema_config_snapshot = output_data.get("schema_config_snapshot")
try:
patched_schema = patch_video_prompt_schema_from_client(
server_schema=server_schema,
client_schema=req.prompt_schema,
video_config=video_config,
schema_config_snapshot=schema_config_snapshot,
)
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc)) from exc
final_prompt = build_final_video_prompt(patched_schema)
output_data["prompt_schema"] = patched_schema