{"record":{"id":"52dae63a5605eb5e","repo":"roboflow/supervision","slug":"argument-arg-is-not-allowed-for-vlm-name","errorCode":null,"errorMessage":"Argument {arg} is not allowed for {vlm.name}","messagePattern":"Argument (.+?) is not allowed for (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"src/supervision/detection/vlm.py","lineNumber":207,"sourceCode":"        except ValueError:\n            raise ValueError(\n                f\"Invalid vlm value: {vlm}. Must be one of {[e.value for e in VLM]}\"\n            )\n\n    if not isinstance(result, RESULT_TYPES[vlm]):\n        raise ValueError(\n            f\"Invalid VLM result type: {type(result)}. Must be {RESULT_TYPES[vlm]}\"\n        )\n\n    required_args = REQUIRED_ARGUMENTS.get(vlm, [])\n    for arg in required_args:\n        if arg not in kwargs:\n            raise ValueError(f\"Missing required argument: {arg}\")\n\n    allowed_args = ALLOWED_ARGUMENTS.get(vlm, [])\n    for arg in kwargs:\n        if arg not in allowed_args:\n            raise ValueError(f\"Argument {arg} is not allowed for {vlm.name}\")\n\n    return vlm\n\n\n@deprecated(  # type: ignore[untyped-decorator]\n    target=_validate_vlm_parameters,\n    deprecated_in=\"0.29.0\",\n    remove_in=\"0.32.0\",\n)\ndef validate_vlm_parameters(vlm: VLM | str, result: Any, kwargs: dict[str, Any]) -> VLM:\n    return void(vlm, result, kwargs)  # type: ignore[no-any-return]\n\n\ndef from_paligemma(\n    result: str, resolution_wh: tuple[int, int], classes: list[str] | None = None\n) -> tuple[npt.NDArray[Any], npt.NDArray[Any] | None, npt.NDArray[Any]]:\n    \"\"\"\n    Parse bounding boxes from paligemma-formatted text, scale them to the specified","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/roboflow/supervision/blob/7f254d9784d4c37e0f03cd89ddee164c8db099c0/src/supervision/detection/vlm.py#L189-L225","documentation":"Error \"Argument {arg} is not allowed for {vlm.name}\" thrown in roboflow/supervision.","triggerScenarios":"Thrown at src/supervision/detection/vlm.py:207 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the named argument; it is not accepted for the selected VLM.","Consult the connector documentation for which keyword arguments are valid for each model."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7f254d9784d4c37e0f03cd89ddee164c8db099c0","analyzedAt":"2026-08-15T05:13:01.950Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}