File tree 1 file changed +2
-2
lines changed
src/llama_cpp_agent/providers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def create_completion(
151
151
if grammar in self .grammar_cache :
152
152
grammar = self .grammar_cache [grammar ]
153
153
else :
154
- self .grammar_cache [grammar ] = LlamaGrammar .from_string (grammar )
154
+ self .grammar_cache [grammar ] = LlamaGrammar .from_string (grammar , verbose = self . llama_model . verbose )
155
155
grammar = self .grammar_cache [grammar ]
156
156
157
157
settings_dictionary = deepcopy (settings .as_dict ())
@@ -179,7 +179,7 @@ def create_chat_completion(
179
179
if grammar in self .grammar_cache :
180
180
grammar = self .grammar_cache [grammar ]
181
181
else :
182
- self .grammar_cache [grammar ] = LlamaGrammar .from_string (grammar )
182
+ self .grammar_cache [grammar ] = LlamaGrammar .from_string (grammar , verbose = self . llama_model . verbose )
183
183
grammar = self .grammar_cache [grammar ]
184
184
settings_dictionary = deepcopy (settings .as_dict ())
185
185
settings_dictionary ["max_tokens" ] = settings_dictionary .pop ("n_predict" )
You can’t perform that action at this time.
0 commit comments