{"record":{"id":"7da01466f5cc6640","repo":"Comfy-Org/ComfyUI","slug":"up-to-spec-max-images-images-are-supported-for","errorCode":null,"errorMessage":"Up to {spec.max_images} images are supported for {slug}.","messagePattern":"Up to (.+?) images are supported for (.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_openrouter.py","lineNumber":343,"sourceCode":"            raise ValueError(f\"Unknown OpenRouter model: {slug}\")\n\n        reasoning_effort: str | None = model.get(\"reasoning_effort\")\n        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}.\")","sourceCodeStart":325,"sourceCodeEnd":361,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_openrouter.py#L325-L361","documentation":"Error \"Up to {spec.max_images} images are supported for {slug}.\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/nodes_openrouter.py:343 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number of attached images 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"}