Nolan feca2310d1 fix(so): reject an unsupported schema_type at the request boundary
An unknown schema_type failed three layers away from its cause: the
compiler raised ValueError('Unsupported Grammar Type') inside the try
block, the except ValueError meant for xgrammar's own input errors
rewrapped it as RuntimeError('xgrammar invalid input: ...'), and
try_result()'s except RuntimeError branch then reported it as an
xgrammar timeout. A typo in schema_type surfaced as a timeout.

Expose the supported types from the compiler and check the value in
build() next to the presence check, so a wrong schema_type fails the
same synchronous way a missing one does. The compiler keeps its own
guard, moved ahead of the try so it is no longer rewrapped.
2026-10-27 12:18:35 +08:00
..
_C initial commit 2026-10-20 12:09:42 +08:00
distributed initial commit 2026-10-20 12:09:42 +08:00
engine initial commit 2026-10-20 12:09:42 +08:00
entrypoints initial commit 2026-10-20 12:09:42 +08:00
hugging_face initial commit 2026-10-20 12:09:42 +08:00
model_executor initial commit 2026-10-20 12:09:42 +08:00
npu_ops initial commit 2026-10-20 12:09:42 +08:00
structure_output fix(so): reject an unsupported schema_type at the request boundary 2026-10-27 12:18:35 +08:00
ve initial commit 2026-10-20 12:09:42 +08:00
worker initial commit 2026-10-20 12:09:42 +08:00
__init__.py initial commit 2026-10-20 12:09:42 +08:00
attrdict.py initial commit 2026-10-20 12:09:42 +08:00
config.py initial commit 2026-10-20 12:09:42 +08:00
environ.py fix: validate boolean environment variables with strict parsing (#218) 2026-10-25 19:59:27 +08:00
load_class.py initial commit 2026-10-20 12:09:42 +08:00
logger.py initial commit 2026-10-20 12:09:42 +08:00
model_config_loader.py initial commit 2026-10-20 12:09:42 +08:00
multimodal_tokens.py initial commit 2026-10-20 12:09:42 +08:00
platform.py initial commit 2026-10-20 12:09:42 +08:00
py.typed initial commit 2026-10-20 12:09:42 +08:00
sampling_params.py initial commit 2026-10-20 12:09:42 +08:00
sequence.py initial commit 2026-10-20 12:09:42 +08:00
shared_memory.py initial commit 2026-10-20 12:09:42 +08:00
testing.py initial commit 2026-10-20 12:09:42 +08:00
timer.py initial commit 2026-10-20 12:09:42 +08:00
utils.py initial commit 2026-10-20 12:09:42 +08:00