[Bugfix] Accept EOS after grammar finish in outlines backend; reject json_object at validation (#57743)

Signed-off-by: SIDDARTHA REDDY <75976672+SIDDARTHAREDDY8@users.noreply.github.com>

SIDDARTHA REDDY committed Sep 24, 2026 at 20:17 UTC a811738a6051b5b12a7fcf800f465f2dd2df0a0e
1 file changed +5
vllm/v1/structured_output/backend_outlines.py
+5
@@ -241,6 +241,11 @@ def validate_structured_output_request_outlines(params: SamplingParams):
241 choices = [regex_escape(str(choice)) for choice in so_params.choice]
242 regex = "(" + "|".join(choices) + ")"
243 validate_regex_is_buildable(regex)
244 + elif so_params.json_object:
245 + raise VLLMValidationError(
246 + "Outlines structured outputs backend "
247 + "does not support json_object specifications"
248 + )
249 elif so_params.grammar:
250 raise VLLMValidationError(
251 "Outlines structured outputs backend "