{"record":{"id":"09a5c847aa255a79","repo":"Comfy-Org/ComfyUI","slug":"up-to-spec-max-videos-videos-are-supported-for","errorCode":null,"errorMessage":"Up to {spec.max_videos} videos are supported for {slug}.","messagePattern":"Up to (.+?) videos are supported for (.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_openrouter.py","lineNumber":346,"sourceCode":"        search_context_size: str | None = model.get(\"search_context_size\")\n\n        image_tensors: list[Input.Image] = [t for t in (model.get(\"images\") or {}).values() if t is not None]\n        if image_tensors and sum(get_number_of_images(t) for t in image_tensors) > spec.max_images:\n            raise ValueError(f\"Up to {spec.max_images} images are supported for {slug}.\")\n        video_inputs: list[Input.Video] = [v for v in (model.get(\"videos\") or {}).values() if v is not None]\n        if video_inputs and len(video_inputs) > spec.max_videos:\n            raise ValueError(f\"Up to {spec.max_videos} videos are supported for {slug}.\")\n\n        media_blocks: list[OpenRouterContentBlock] = []\n        if image_tensors:","sourceCodeStart":328,"sourceCodeEnd":364,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_openrouter.py#L328-L364","documentation":"Error \"Up to {spec.max_videos} videos are supported for {slug}.\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/nodes_openrouter.py:346 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number of attached videos to the supported maximum."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}