fix(video-render): Veo numberOfVideos 무조건 추가 → optional (T10 follow-up)
end-to-end 검증에서 발견: veo-3.0-fast-generate-001은 numberOfVideos 파라미터 미지원 → 400 INVALID_ARGUMENT 즉시 실패. 호출자가 number_of_videos params 명시할 때만 body에 추가. default body는 prompt + aspectRatio + (duration/resolution/negativePrompt /personGeneration 조건부)만. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -49,9 +49,11 @@ def run_veo_generation(task_id: str, params: dict) -> None:
|
|||||||
"instances": [{"prompt": params["prompt"]}],
|
"instances": [{"prompt": params["prompt"]}],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"aspectRatio": params.get("aspect_ratio") or "16:9",
|
"aspectRatio": params.get("aspect_ratio") or "16:9",
|
||||||
"numberOfVideos": 1,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
# numberOfVideos는 일부 모델(veo-3.0-fast 등) 미지원 — 호출자 명시 시에만 추가
|
||||||
|
if params.get("number_of_videos"):
|
||||||
|
body["parameters"]["numberOfVideos"] = int(params["number_of_videos"])
|
||||||
if params.get("duration"):
|
if params.get("duration"):
|
||||||
body["parameters"]["durationSeconds"] = str(params["duration"])
|
body["parameters"]["durationSeconds"] = str(params["duration"])
|
||||||
if params.get("resolution"):
|
if params.get("resolution"):
|
||||||
|
|||||||
Reference in New Issue
Block a user