Apply a chat template and return the result as a D string. Allocates a buffer and retries once if it is too small.
Names of all built-in chat templates supported by llama_chat_apply_template. Returns a GC-allocated slice of D strings.
Apply a Jinja chat template to a list of messages.