From c788d1b57982498473de8ce3cc842f3a186e97ae Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 24 Nov 2023 20:49:58 -0800 Subject: [PATCH] added docs --- llama.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llama.h b/llama.h index 7f2a1a6c6..b15de2ccc 100644 --- a/llama.h +++ b/llama.h @@ -719,6 +719,7 @@ extern "C" { "use llama_sample_temp instead"); /// @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( struct llama_context * ctx, llama_token_data_array * candidates,