| chat_llm | R Documentation |
This function sends a message to the LLM model and retrieves the result.
chat_llm(
.message,
.model = NULL,
.temperature = 0,
.max_tokens = 30000,
.timeout = 300,
.verbose = getOption("llmjoin.verbose", FALSE)
)
.message |
the message to send. |
.model |
character, LLM model to use. By default NULL (uses config value). |
.temperature |
OpenAI style randomness control (0~1), by default 0. |
.max_tokens |
Max tokens to spend. |
.timeout |
Max seconds to communicate with LLM. |
.verbose |
logical, print progress messages. Default |
A character string with the LLM's response text.
chat_llm("tell a joke.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.