llama_model_chat_template function

  1. @Native<Pointer<Char> Function(Pointer<llama_model>, Pointer<Char>)>(ffi.Pointer<llama_model>, ffi.Pointer<ffi.Char>)>()
Pointer<Char> llama_model_chat_template(
  1. Pointer<llama_model> model,
  2. Pointer<Char> name
)

Get the default chat template. Returns nullptr if not available If name is NULL, returns the default chat template

Implementation

@ffi.Native<
  ffi.Pointer<ffi.Char> Function(
    ffi.Pointer<llama_model>,
    ffi.Pointer<ffi.Char>,
  )
>()
external ffi.Pointer<ffi.Char> llama_model_chat_template(
  ffi.Pointer<llama_model> model,
  ffi.Pointer<ffi.Char> name,
);