Skip to content

Commit de3ed7d

Browse files
authored
add missing resolve_refs call to enable subschema use (#1959)
1 parent c2d9632 commit de3ed7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

koboldcpp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ def convert_json_to_gbnf(json_obj):
11021102
dotall=False,
11031103
raw_pattern=False)
11041104
schema = json.loads(json.dumps(json_obj))
1105+
schema = converter.resolve_refs(schema, '')
11051106
converter.visit(schema, '')
11061107
outstr = converter.format_grammar()
11071108
return outstr

0 commit comments

Comments
 (0)