Safe Haskell | None |
---|---|
Language | Haskell2010 |
Llama.Internal.Foreign.ChatTemplate
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);