[CI] xgrammar structured output supports Enum. (#15757)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
parent
3c0ff914ac
commit
045533716b
@ -13,10 +13,6 @@ def unsupported_string_schemas():
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[a-zA-Z]+$"
|
"pattern": "^[a-zA-Z]+$"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["active", "inactive", "pending"]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"minLength": 1
|
"minLength": 1
|
||||||
@ -164,6 +160,10 @@ def supported_schema():
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"car_type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["sedan", "suv", "truck"]
|
||||||
|
},
|
||||||
"address": {
|
"address": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user