llama.cpp/tests
Maarten ter Huurne c21edb6908
Do not set grammar to None for new LlamaGrammar objects (#834)
* Do not set `grammar` to `None` for new `LlamaGrammar` objects

The `grammar` attribute is written by `init()`, but that method always
returns `None`, so `__init__()` would then discard the previously
written object.

* Add minimal test for grammar parsing
2023-11-21 00:23:18 -05:00
..
test_grammar.py Do not set grammar to None for new LlamaGrammar objects (#834) 2023-11-21 00:23:18 -05:00
test_llama.py tests: Improve llama.cpp mock 2023-11-20 23:23:18 -05:00