Skip to content

Commit 8f1977a

Browse files
chaunceyjiangnishith-fujitsu
authored andcommitted
[CI] xgrammar structured output supports Enum. (vllm-project#15757)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
1 parent ba4a3e1 commit 8f1977a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/v1/structured_output/test_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ def unsupported_string_schemas():
1313
"type": "string",
1414
"pattern": "^[a-zA-Z]+$"
1515
},
16-
{
17-
"type": "string",
18-
"enum": ["active", "inactive", "pending"]
19-
},
2016
{
2117
"type": "string",
2218
"minLength": 1
@@ -164,6 +160,10 @@ def supported_schema():
164160
"type": "number"
165161
}
166162
},
163+
"car_type": {
164+
"type": "string",
165+
"enum": ["sedan", "suv", "truck"]
166+
},
167167
"address": {
168168
"type": "object",
169169
"properties": {

0 commit comments

Comments
 (0)