[Bugfix][Structured Output] Mask grammar-invalid implicit reasoning ends (#61574)

Signed-off-by: Maroon Ayoub <mayoub@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
This commit is contained in:
Maroon Ayoub
2026-10-16 12:53:41 +08:00
committed by GitHub
co-authored by Claude Robert Shaw
parent 92dc3dd393
commit 4ac1f8d2ac
7 changed files with 198 additions and 20 deletions
+4
View File
@@ -115,6 +115,10 @@ class ParserEngineReasoningAdapter(ReasoningParser):
def reasoning_end_token_ids(self) -> frozenset[int]:
return self._parser_engine.reasoning_end_token_ids
@property
def implicit_reasoning_end_token_ids(self) -> frozenset[int]:
return self._parser_engine.implicit_reasoning_end_token_ids
def adjust_request(
self,
request: ChatCompletionRequest | ResponsesRequest,