mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-09 19:46:11 +00:00
add missing resolve_refs call to enable subschema use (#1959)
This commit is contained in:
parent
c2d96328fe
commit
de3ed7d7d6
1 changed files with 1 additions and 0 deletions
|
|
@ -1102,6 +1102,7 @@ def convert_json_to_gbnf(json_obj):
|
|||
dotall=False,
|
||||
raw_pattern=False)
|
||||
schema = json.loads(json.dumps(json_obj))
|
||||
schema = converter.resolve_refs(schema, '')
|
||||
converter.visit(schema, '')
|
||||
outstr = converter.format_grammar()
|
||||
return outstr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue