mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 12:54:12 +02:00
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
19 lines
130 B
Plaintext
19 lines
130 B
Plaintext
-- old --
|
|
a
|
|
b
|
|
c^D
|
|
-- new --
|
|
a
|
|
b
|
|
c
|
|
-- diff --
|
|
diff old new
|
|
--- old
|
|
+++ new
|
|
@@ -1,3 +1,3 @@
|
|
a
|
|
b
|
|
-c
|
|
\ No newline at end of file
|
|
+c
|