rename define to match upstream

This commit is contained in:
Concedo 2025-05-23 17:10:12 +08:00
parent 22ef97d7d3
commit 499283c63a
6 changed files with 13 additions and 11 deletions

View file

@ -3134,7 +3134,9 @@ Change Mode<br>
return
try:
genparams = json.loads(body)
schema = genparams.get('schema', {})
schema = genparams.get('schema', None)
if not schema:
schema = genparams
decoded = convert_json_to_gbnf(schema)
response_body = (json.dumps({"result": decoded,"success":(True if decoded else False)}).encode())
except Exception as e: