mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-06 09:46:50 +00:00
llama : deprecate llama_sample_grammar
This commit is contained in:
@@ -1008,6 +1008,11 @@ extern "C" {
|
|||||||
struct llama_context * ctx,
|
struct llama_context * ctx,
|
||||||
llama_token_data_array * candidates,
|
llama_token_data_array * candidates,
|
||||||
const struct llama_grammar * grammar);
|
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
|
/// @details Accepts the sampled token into the grammar
|
||||||
LLAMA_API void llama_grammar_accept_token(
|
LLAMA_API void llama_grammar_accept_token(
|
||||||
|
|||||||
Reference in New Issue
Block a user