Add roleplay.gbnf grammar (#5368)
This commit is contained in:
parent
b1463df0a1
commit
40c7977f9b
2 changed files with 5 additions and 1 deletions
|
|
@ -115,6 +115,6 @@ def get_truncation_length():
|
|||
def load_grammar(name):
|
||||
p = Path(f'grammars/{name}')
|
||||
if p.exists():
|
||||
return open(p, 'r').read()
|
||||
return open(p, 'r', encoding='utf-8').read()
|
||||
else:
|
||||
return ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue