Skip to content

Commit e7dffa6

Browse files
committed
llama : deprecate llama_sample_grammar
1 parent 689d377 commit e7dffa6

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
@@ -1008,6 +1008,11 @@ extern "C" {
10081008
struct llama_context * ctx,
10091009
llama_token_data_array * candidates,
10101010
const struct llama_grammar * grammar);
1011+
LLAMA_API DEPRECATED(bool llama_sample_grammar(
1012+
struct llama_context * ctx,
1013+
llama_token_data_array * candidates,
1014+
const struct llama_grammar * grammar),
1015+
"use llama_grammar_sample instead");
10111016

10121017
/// @details Accepts the sampled token into the grammar
10131018
LLAMA_API void llama_grammar_accept_token(

0 commit comments

Comments
 (0)