From 5d43f7372ebe0e306a03142d3815f76ff0147240 Mon Sep 17 00:00:00 2001 From: FredericOdermatt <50372080+FredericOdermatt@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:48:33 +0100 Subject: [PATCH] [Doc] Update description disable_any_whitespace (#29784) Signed-off-by: Frederic Odermatt --- vllm/config/structured_outputs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vllm/config/structured_outputs.py b/vllm/config/structured_outputs.py index 1b32675c3dbd2..1672c1d7c9a09 100644 --- a/vllm/config/structured_outputs.py +++ b/vllm/config/structured_outputs.py @@ -28,8 +28,10 @@ class StructuredOutputsConfig: disable_fallback: bool = False """If `True`, vLLM will not fallback to a different backend on error.""" disable_any_whitespace: bool = False - """If `True`, the model will not generate any whitespace during structured - outputs. This is only supported for xgrammar and guidance backends.""" + """If `True`, json output will always be compact without any whitespace. + If `False`, the model may generate whitespace between JSON fields, + which is still valid JSON. This is only supported for xgrammar + and guidance backends.""" disable_additional_properties: bool = False """If `True`, the `guidance` backend will not use `additionalProperties` in the JSON schema. This is only supported for the `guidance` backend and