added docs
This commit is contained in:
parent
f29add56d8
commit
c788d1b579
1 changed files with 1 additions and 0 deletions
1
llama.h
1
llama.h
|
@ -719,6 +719,7 @@ extern "C" {
|
||||||
"use llama_sample_temp instead");
|
"use llama_sample_temp instead");
|
||||||
|
|
||||||
/// @details Apply constraints from grammar
|
/// @details Apply constraints from grammar
|
||||||
|
/// @param pieces an array of all null terminated strings obtained from calling llama_token_to_piece for the whole grammar. Can be nullptr in which case they will be computed.
|
||||||
LLAMA_API void llama_sample_grammar(
|
LLAMA_API void llama_sample_grammar(
|
||||||
struct llama_context * ctx,
|
struct llama_context * ctx,
|
||||||
llama_token_data_array * candidates,
|
llama_token_data_array * candidates,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue