mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-26 15:15:16 +02:00
add missing resolve_refs call to enable subschema use (#1959)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user