Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
04553371
Unverified
Commit
04553371
authored
Mar 30, 2025
by
Chauncey
Committed by
GitHub
Mar 29, 2025
Browse files
[CI] xgrammar structured output supports Enum. (#15757)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
3c0ff914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/v1/structured_output/test_utils.py
tests/v1/structured_output/test_utils.py
+4
-4
No files found.
tests/v1/structured_output/test_utils.py
View file @
04553371
...
...
@@ -13,10 +13,6 @@ def unsupported_string_schemas():
"type"
:
"string"
,
"pattern"
:
"^[a-zA-Z]+$"
},
{
"type"
:
"string"
,
"enum"
:
[
"active"
,
"inactive"
,
"pending"
]
},
{
"type"
:
"string"
,
"minLength"
:
1
...
...
@@ -164,6 +160,10 @@ def supported_schema():
"type"
:
"number"
}
},
"car_type"
:
{
"type"
:
"string"
,
"enum"
:
[
"sedan"
,
"suv"
,
"truck"
]
},
"address"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment