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 @@ -157,7 +157,7 @@ class LLAMAContext : public Napi::ObjectWrap<LLAMAContext> {
157
157
}
158
158
159
159
if (options.Has (" embedding" )) {
160
- context_params.embedding = options.Get (" embedding" ).As <Napi::Boolean>().Value ();
160
+ context_params.embeddings = options.Get (" embedding" ).As <Napi::Boolean>().Value ();
161
161
}
162
162
163
163
if (options.Has (" threads" )) {
@@ -409,7 +409,7 @@ class LLAMAContextEvalWorker : Napi::AsyncWorker, Napi::Promise::Deferred {
409
409
llama_sample_tail_free (ctx->ctx , &candidates_p, tfs_z, min_keep);
410
410
llama_sample_typical (ctx->ctx , &candidates_p, typical_p, min_keep);
411
411
llama_sample_top_p (ctx->ctx , &candidates_p, resolved_top_p, min_keep);
412
- llama_sample_temperature (ctx->ctx , &candidates_p, temperature);
412
+ llama_sample_temp (ctx->ctx , &candidates_p, temperature);
413
413
new_token_id = llama_sample_token (ctx->ctx , &candidates_p);
414
414
}
415
415
You can’t perform that action at this time.
0 commit comments