Skip to content

Commit a97f98a

Browse files
committed
chore!: remove deprecated logits_all accessor
1 parent 0d9fce9 commit a97f98a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ext/llama_cpp/llama_cpp.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -772,17 +772,6 @@ static VALUE llama_context_params_set_type_v(VALUE self, VALUE type_v) {
772772
return type_v;
773773
}
774774

775-
static VALUE llama_context_params_get_logits_all(VALUE self) {
776-
struct llama_context_params* data = get_llama_context_params(self);
777-
return data->logits_all ? Qtrue : Qfalse;
778-
}
779-
780-
static VALUE llama_context_params_set_logits_all(VALUE self, VALUE logits_all) {
781-
struct llama_context_params* data = get_llama_context_params(self);
782-
data->logits_all = RTEST(logits_all) ? true : false;
783-
return logits_all;
784-
}
785-
786775
static VALUE llama_context_params_get_embeddings(VALUE self) {
787776
struct llama_context_params* data = get_llama_context_params(self);
788777
return data->embeddings ? Qtrue : Qfalse;
@@ -4558,17 +4547,6 @@ void Init_llama_cpp(void) {
45584547
* @return [Integer]
45594548
*/
45604549
rb_define_method(rb_cLlamaContextParams, "type_v=", RUBY_METHOD_FUNC(llama_context_params_set_type_v), 1);
4561-
/**
4562-
* Document-method: logits_all
4563-
* @return [Boolean]
4564-
*/
4565-
rb_define_method(rb_cLlamaContextParams, "logits_all", RUBY_METHOD_FUNC(llama_context_params_get_logits_all), 0);
4566-
/**
4567-
* Document-method: logits_all=
4568-
* @param [Boolean] logits_all
4569-
* @return [Boolean]
4570-
*/
4571-
rb_define_method(rb_cLlamaContextParams, "logits_all=", RUBY_METHOD_FUNC(llama_context_params_set_logits_all), 1);
45724550
/**
45734551
* Document-method: embeddings
45744552
* @return [Boolean]

0 commit comments

Comments
 (0)