]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
JSON Schema to GBNF integration tests (#7790)
authorClint Herron <redacted>
Sat, 22 Jun 2024 03:18:36 +0000 (23:18 -0400)
committerGitHub <redacted>
Sat, 22 Jun 2024 03:18:36 +0000 (23:18 -0400)
commitc5a8d4b749352645afd4c024f85d6eca2ca72c6d
treeb10ce9fb6df5c437fefa97e987124902546f0099
parent557b653dc9ed91e8c313e87500e0050c775f81b6
JSON Schema to GBNF integration tests (#7790)

* Adding simple bare-bones test for end-to-end integration test for json validation against auto-generated JSON-schema grammars.

* Adding additional examples as documented in #7789 . Also adding the ability to automatically output improperly failing grammars to debug output files so they can more easily be examined in the gbnf-validator program.

* Uncommenting formerly commented tests so that they fail for others who are attempting to reproduce the bugs.

* Merging improved schema test methods added by @ochafik in #7797

* Adding #define to temporarily remove failing tests so that this PR can pass CI, but still be useful for other PRs that want to leverage the framework.

* Fixing nits from ochafik. Removing escape slashes, adding additional failing cases, fixing some other strings.

* Fixing grammar indentation to be consistent throughout file.
Makefile
tests/test-grammar-integration.cpp