A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 15, 17:15 UTC
[CI] xgrammar structured output supports Enum. (#15757)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Chauncey committed
Mar 30, 2025 at 11:20 UTC
045533716b4108e341e7c54dcb78758e2f9b5c7d
1 file changed
+4
-4
tests/v1/structured_output/test_utils.py
+4
-4
@@ -13,10 +13,6 @@ def unsupported_string_schemas():
13
"type": "string",
14
"pattern": "^[a-zA-Z]+$"
15
},
16
- {
17
- "type": "string",
18
- "enum": ["active", "inactive", "pending"]
19
- },
16
{
17
"type": "string",
18
"minLength": 1
@@ -164,6 +160,10 @@ def supported_schema():
160
"type": "number"
161
}
162
},
163
+ "car_type": {
164
+ "type": "string",
165
+ "enum": ["sedan", "suv", "truck"]
166
+ },
167
"address": {
168
"type": "object",
169
"properties": {