Skip to content

Commit bd4b375

Browse files
committed
llama : deprecate llama_sample_grammar
1 parent 738c500 commit bd4b375

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
@@ -1005,6 +1005,11 @@ extern "C" {
10051005
struct llama_context * ctx,
10061006
llama_token_data_array * candidates,
10071007
const struct llama_grammar * grammar);
1008+
LLAMA_API DEPRECATED(bool llama_sample_grammar(
1009+
struct llama_context * ctx,
1010+
llama_token_data_array * candidates,
1011+
const struct llama_grammar * grammar),
1012+
"use llama_grammar_sample instead");
10081013

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

0 commit comments

Comments
 (0)