llama_set_embeddings function

  1. @Native<Void Function(Pointer<llama_context>, Bool)>(ffi.Pointer<llama_context>, ffi.Bool)>()
void llama_set_embeddings(
  1. Pointer<llama_context> ctx,
  2. bool embeddings
)

Set whether the context outputs embeddings or not TODO: rename to avoid confusion with llama_get_embeddings()

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<llama_context>, ffi.Bool)>()
external void llama_set_embeddings(
  ffi.Pointer<llama_context> ctx,
  bool embeddings,
);