[Bugfix] Raise VLLMValidationError from structured output validators (#52394)

Signed-off-by: Jeffrey Wang <jeffreywang@anyscale.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeffrey Wang
2026-08-16 01:04:51 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 8efa13b700
commit 41f12a0daf
8 changed files with 109 additions and 30 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ def validate_structural_tag_payload(payload: Any, *, parameter: str) -> None:
structured_outputs=StructuredOutputsParams(structural_tag=payload)
)
)
except (TypeError, ValueError) as exc:
except (TypeError, ValueError, VLLMValidationError) as exc:
raise VLLMValidationError(
f"Invalid {parameter} structural_tag specification.",
parameter=parameter,