Skip to content

Commit 290f9aa

Browse files
committed
llama : deprecate llama_sample_grammar
1 parent e2c46fd commit 290f9aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/llama.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,11 @@ extern "C" {
10061006
struct llama_context * ctx,
10071007
llama_token_data_array * candidates,
10081008
const struct llama_grammar * grammar);
1009+
LLAMA_API DEPRECATED(bool llama_sample_grammar(
1010+
struct llama_context * ctx,
1011+
llama_token_data_array * candidates,
1012+
const struct llama_grammar * grammar),
1013+
"use llama_grammar_sample instead");
10091014

10101015
/// @details Accepts the sampled token into the grammar
10111016
LLAMA_API void llama_grammar_accept_token(

0 commit comments

Comments
 (0)