File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3378,7 +3378,7 @@ class RbLLaMAContext {
3378
3378
}
3379
3379
LLaMAGrammarWrapper* grm_ptr = RbLLaMAGrammar::get_llama_grammar (kw_values[0 ]);
3380
3380
3381
- llama_sample_grammar ( ctx_ptr->ctx , &(cnd_ptr->array ), grm_ptr-> grammar );
3381
+ llama_grammar_sample (grm_ptr-> grammar , ctx_ptr->ctx , &(cnd_ptr->array ));
3382
3382
3383
3383
return Qnil;
3384
3384
}
@@ -3407,7 +3407,7 @@ class RbLLaMAContext {
3407
3407
LLaMAGrammarWrapper* grm_ptr = RbLLaMAGrammar::get_llama_grammar (kw_values[0 ]);
3408
3408
llama_token token = NUM2INT (kw_values[1 ]);
3409
3409
3410
- llama_grammar_accept_token (ctx_ptr-> ctx , grm_ptr-> grammar , token);
3410
+ llama_grammar_accept_token (grm_ptr-> grammar , ctx_ptr-> ctx , token);
3411
3411
3412
3412
return Qnil;
3413
3413
}
You can’t perform that action at this time.
0 commit comments