]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
examples : generate JSON according to schema (#1887)
authorEvan Jones <redacted>
Thu, 3 Aug 2023 02:05:44 +0000 (22:05 -0400)
committerGitHub <redacted>
Thu, 3 Aug 2023 02:05:44 +0000 (22:05 -0400)
commit8183159cf3def112f6d1fe94815fce70e1bffa12
tree2a8438749b3b664b199778356dc6c2508d582a44
parent468ea24fb4633a0d681f7ac84089566c1c6190cb
examples : generate JSON according to schema (#1887)

* examples : add JSON schema grammars

* complete JSON grammar

* ensure primitive types can be used as root of schema

* support integer type and adjust usage text
examples/json-schema-to-grammar.py [new file with mode: 0644]
grammars/json.gbnf