| llama_gen_end | R Documentation |
Marks the generation done and returns any bytes still held in the internal
UTF-8 carry buffer (the tail of an unfinished character, if generation
stopped mid-character). Concatenating every [llama_gen_next] chunk followed
by the llama_gen_end result reproduces the full [llama_generate]
output for the same seed and parameters. Safe to call more than once.
llama_gen_end(state)
state |
Generation state handle from [llama_gen_begin]. |
A length-1 UTF-8 character vector with any remaining buffered text
(often "").
[llama_gen_begin], [llama_gen_next]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.