From 763b41e2aa47e4168077984ac9fc75d39fa9e2b3 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Thu, 11 Apr 2024 15:47:00 +0100 Subject: [PATCH] grammars: fix missing sig change in llama.h --- llama.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llama.h b/llama.h index b770a275f..b5da686f7 100644 --- a/llama.h +++ b/llama.h @@ -1097,10 +1097,11 @@ const std::vector> & llama_internal struct llama_context * ctx ); -std::vector> llama_grammar_accept( +void llama_grammar_accept( const std::vector> & rules, const std::vector> & stacks, - const uint32_t chr); + const uint32_t chr, + std::vector> & new_stacks); std::pair, llama_partial_utf8> decode_utf8( const std::string & src,