Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vllm/model_executor/guided_decoding/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ def check_object(obj: dict) -> bool:
]):
return True

# Check for array unsupported keywords
if obj.get("type") == "array" and any(key in obj for key in [
"uniqueItems", "contains", "minContains", "maxContains",
"minItems", "maxItems"
]):
return True

# Recursively check all nested objects and arrays
for value in obj.values():
if isinstance(value, dict):
Expand Down
Loading