llama : deprecate llama_sample_grammar

This commit is contained in:
Georgi Gerganov 2024-07-19 14:43:56 +03:00
parent 689d377916
commit e7dffa6bc7
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -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(