Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ported back new grammar changes from C++ to Python implementation #1637

Merged
merged 10 commits into from
Aug 7, 2024
2 changes: 1 addition & 1 deletion llama_cpp/llama_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ def llama_grammar_init(
n_rules: Union[ctypes.c_size_t, int],
start_rule_index: Union[ctypes.c_size_t, int],
/,
) -> llama_grammar_p:
) -> Optional[llama_grammar_p]:
"""Initialize a grammar from a set of rules."""
...

Expand Down
Loading