{"record":{"id":"97ef8d9d70a4476f","repo":"calesthio/OpenMontage","slug":"unsupported-turbo-video-operation-operation","errorCode":null,"errorMessage":"Unsupported turbo video operation: {operation}","messagePattern":"Unsupported turbo video operation: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"tools/video/kling_official_video.py","lineNumber":365,"sourceCode":"        if operation == \"text_to_video\":\n            settings[\"aspect_ratio\"] = inputs.get(\"aspect_ratio\", \"16:9\")\n            payload = {\"prompt\": self._prompt(inputs), \"settings\": settings}\n            if options:\n                payload[\"options\"] = options\n            path = \"/text-to-video/kling-3.0-turbo\"\n        elif operation == \"image_to_video\":\n            if inputs.get(\"reference_image_path\") and not inputs.get(\"reference_image_url\"):\n                raise ValueError(\"Turbo image_to_video requires reference_image_url; local paths cannot be silently uploaded.\")\n            image_url = inputs.get(\"reference_image_url\")\n            if not image_url:\n                raise ValueError(\"image_to_video requires reference_image_url for api_family=turbo\")\n            contents = [{\"type\": \"prompt\", \"text\": self._prompt(inputs)}, {\"type\": \"first_frame\", \"url\": image_url}]\n            payload = {\"contents\": contents, \"settings\": settings}\n            if options:\n                payload[\"options\"] = options\n            path = \"/image-to-video/kling-3.0-turbo\"\n        else:\n            raise ValueError(f\"Unsupported turbo video operation: {operation}\")\n        return {\n            \"protocol\": \"turbo\",\n            \"path\": path,\n            \"payload\": payload,\n            \"operation\": operation,\n            \"api_family\": \"turbo\",\n            \"model\": \"kling-3.0-turbo\",\n        }\n\n    def _build_omni_request(self, inputs: dict[str, Any], operation: str) -> dict[str, Any]:\n        explicit_model = inputs.get(\"model_name\") or inputs.get(\"model_variant\")\n        model_name = str(explicit_model or \"kling-video-o1\")\n        if model_name not in OMNI_VIDEO_MODELS:\n            raise ValueError(f\"model_name {model_name!r} is not supported for api_family=omni\")\n        payload, references_used, element_id_values = self._build_omni_payload(inputs, operation, model_name)\n        return {\n            \"protocol\": \"classic\",\n            \"path\": \"/v1/videos/omni-video\",","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/kling_official_video.py#L347-L383","documentation":"Error \"Unsupported turbo video operation: {operation}\" thrown in calesthio/OpenMontage.","triggerScenarios":"An operation string outside the supported turbo Kling video operations is passed with api_family=turbo.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported turbo operations for this endpoint.","Verify the operation name against the tool documentation and correct any typo."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95e1c3d0ab93482159818560f6a8c8e866b9139f","analyzedAt":"2026-08-15T06:31:20.014Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}