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
aab39277
Unverified
Commit
aab39277
authored
Feb 25, 2025
by
Russell Bryant
Committed by
GitHub
Feb 25, 2025
Browse files
[Core] xgrammar: Expand list of unsupported jsonschema keywords (#13783)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
6724e791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
vllm/model_executor/guided_decoding/utils.py
vllm/model_executor/guided_decoding/utils.py
+12
-0
No files found.
vllm/model_executor/guided_decoding/utils.py
View file @
aab39277
...
...
@@ -33,6 +33,18 @@ def has_xgrammar_unsupported_json_features(schema: dict) -> bool:
]):
return
True
# Unsupported keywords for strings
if
obj
.
get
(
"type"
)
==
"string"
and
any
(
key
in
obj
for
key
in
[
"minLength"
,
"maxLength"
,
"format"
]):
return
True
# Unsupported keywords for objects
if
obj
.
get
(
"type"
)
==
"object"
and
any
(
key
in
obj
for
key
in
[
"minProperties"
,
"maxProperties"
,
"propertyNames"
,
"patternProperties"
]):
return
True
# Recursively check all nested objects and arrays
for
value
in
obj
.
values
():
if
isinstance
(
value
,
dict
):
...
...
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