From e7dffa6bc74c49ba0eaad52848fde8abf9a9d9cd Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 19 Jul 2024 14:43:56 +0300 Subject: [PATCH] llama : deprecate llama_sample_grammar --- include/llama.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llama.h b/include/llama.h index 1c58aaf316..9e611ae071 100644 --- a/include/llama.h +++ b/include/llama.h @@ -1008,6 +1008,11 @@ extern "C" { struct llama_context * ctx, llama_token_data_array * candidates, const struct llama_grammar * grammar); + LLAMA_API DEPRECATED(bool llama_sample_grammar( + struct llama_context * ctx, + llama_token_data_array * candidates, + const struct llama_grammar * grammar), + "use llama_grammar_sample instead"); /// @details Accepts the sampled token into the grammar LLAMA_API void llama_grammar_accept_token(