mirror of
https://github.com/ollama/ollama.git
synced 2026-04-19 12:54:19 +02:00
grammar: introduce new grammar package
This package provides a way to convert JSON schemas to equivalent EBNF. It is intended to be a replacement to llama.cpp's schema_to_grammar. This is still an early version and does not yet support all JSON schema features. The to-do list includes: - minumum/maximum constraints on integer types - minLength/maxLength constraints on string types - defs and refs
This commit is contained in:
committed by
ParthSareen
parent
5e0b904e88
commit
564b9b48af
5
grammar/internal/diff/testdata/same.txt
vendored
Normal file
5
grammar/internal/diff/testdata/same.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
-- old --
|
||||
hello world
|
||||
-- new --
|
||||
hello world
|
||||
-- diff --
|
||||
Reference in New Issue
Block a user