llama-cpp-hs
Safe HaskellNone
LanguageHaskell2010

Llama.Internal.Foreign.ChatTemplate

Synopsis

Documentation

c_llama_chat_apply_template Source #

Arguments

:: CString 
-> Ptr LlamaChatMessage 
-> CSize 
-> CBool 
-> CString 
-> CInt 
-> IO CInt

Returns required buffer size (if > length) or bytes written

LLAMA_API int32_t llama_chat_apply_template( | const char * tmpl, | const struct llama_chat_message * chat, | size_t n_msg, | bool add_ass, | char * buf, | int32_t length);

c_llama_chat_builtin_templates Source #

Arguments

:: Ptr CString 
-> CSize 
-> IO CInt

Returns total number of available templates

LLAMA_API int32_t llama_chat_builtin_templates(const char ** output, size_t len);