视频提词优化管理后台配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user