chattr | R Documentation |
Submits prompt to LLM
chattr(prompt = NULL, preview = FALSE, prompt_build = TRUE, stream = NULL)
prompt |
Request to send to LLM. Defaults to NULL |
preview |
Primarily used for debugging. It indicates if it should send the prompt to the LLM (FALSE), or if it should print out the resulting prompt (TRUE) |
prompt_build |
Include the context and additional prompt as part of the request |
stream |
To output the response from the LLM as it happens, or wait until the response is complete. Defaults to TRUE. |
The output of the LLM to the console, document or script.
library(chattr)
chattr_use("test")
chattr("hello")
chattr("hello", preview = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.