mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
rename define to match upstream
This commit is contained in:
parent
22ef97d7d3
commit
499283c63a
6 changed files with 13 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue