{"record":{"id":"fa130bc6b1845ee7","repo":"BerriAI/litellm","slug":"video-generation-is-not-complete-yet-please-check","errorCode":null,"errorMessage":"Video generation is not complete yet. Please check status with video_status() before downloading.","messagePattern":"Video generation is not complete yet\\. Please check status with video_status\\(\\) before downloading\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/gemini/videos/transformation.py","lineNumber":451,"sourceCode":"        \"\"\"\n        Transform the video content request for Veo API.\n\n        For Veo, we need to:\n        1. Get operation status to extract video URI\n        2. Return download URL for the video\n        \"\"\"\n        operation_name: Final = extract_original_video_id(video_id)\n\n        status_url: Final = f\"{api_base.rstrip('/')}/v1beta/{operation_name}\"\n        client: Final = litellm.module_level_client\n        status_response: Final = client.get(url=status_url, headers=headers)\n        status_response.raise_for_status()\n        response_data: Final = status_response.json()\n\n        operation_response: Final = GeminiLongRunningOperationResponse(**response_data)\n\n        if not operation_response.done:\n            raise ValueError(\n                \"Video generation is not complete yet. Please check status with video_status() before downloading.\"\n            )\n\n        if not operation_response.response:\n            raise ValueError(\"No response data in completed operation\")\n\n        generated_samples: Final = operation_response.response.generateVideoResponse.generatedSamples\n        download_url: Final = generated_samples[0].video.uri\n\n        params: Final[dict[str, Any]] = {}\n\n        return download_url, params\n\n    def transform_video_content_response(\n        self,\n        raw_response: httpx.Response,\n        logging_obj: LiteLLMLoggingObj,\n    ) -> bytes:","sourceCodeStart":433,"sourceCodeEnd":469,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/gemini/videos/transformation.py#L433-L469","documentation":"Error \"Video generation is not complete yet. Please check status with video_status() before downloading.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/gemini/videos/transformation.py:451 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Poll video_status() until the operation completes before downloading."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}