{"record":{"id":"f1aeacc4e8f91726","repo":"sgl-project/sglang","slug":"path-must-be-empty-for-task-profile-task-r-go","errorCode":null,"errorMessage":"{path} must be empty for task {profile.task!r} (got {len(conditions)} entries)","messagePattern":"(.+?) must be empty for task (.+?) \\(got (.+?) entries\\)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/request_validation.py","lineNumber":155,"sourceCode":"        out[\"duration_seconds\"] = float(duration)\n    return out\n\n\ndef _validate_conditions(\n    conditions: Any,\n    *,\n    profile: MiniMaxH3TaskProfile,\n    frame_count: int | None,\n) -> list[dict[str, Any]]:\n    path = \"conditions\"\n    if conditions is None:\n        conditions = []\n    if not isinstance(conditions, Sequence) or isinstance(conditions, (str, bytes)):\n        raise ValueError(f\"{path} must be a list\")\n\n    if not profile.conditions_required:\n        if len(conditions) > 0:\n            raise ValueError(\n                f\"{path} must be empty for task {profile.task!r} \"\n                f\"(got {len(conditions)} entries)\"\n            )\n        return []\n    if len(conditions) == 0:\n        raise ValueError(\n            f\"{path} requires at least one entry for task {profile.task!r}\"\n        )\n    if (\n        profile.min_condition_count is not None\n        and len(conditions) < profile.min_condition_count\n    ):\n        raise ValueError(\n            f\"{path} requires at least {profile.min_condition_count} entries \"\n            f\"for task {profile.task!r}, got {len(conditions)}\"\n        )\n    if (\n        profile.max_condition_count is not None","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/request_validation.py#L137-L173","documentation":"The task's profile does not accept conditions (conditions_required false) but the request supplied a non-empty list. Tasks like plain t2v reject any condition entries.","triggerScenarios":"Sending a keyframe/reference condition to a task that takes only text.","commonSituations":"Reusing a ref2va/i2v request body for a text-only task; conditioning pipeline always attaching reference images.","solutions":["Remove the conditions list (or pass []) for this task","Switch to a task whose profile permits conditions if conditioning is required"],"exampleFix":"// before\n\"conditions\": [{\"role\": \"reference\", ...}]  # on a no-conditions task\n// after\n\"conditions\": []","handlingStrategy":"validation","validationCode":"if not profile.conditions_required:\n    request['conditions'] = []","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Reset conditions when switching tasks"],"tags":["minimax-h3","conditions","task-profile"],"backgroundTag":"unexpected-request-field","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}