ch_submit | R Documentation |
Method to integrate to new LLM API's
ch_submit(
defaults,
prompt = NULL,
stream = NULL,
prompt_build = TRUE,
preview = FALSE,
...
)
defaults |
Defaults object, generally puled from |
prompt |
The prompt to send to the LLM |
stream |
To output the response from the LLM as it happens, or wait until the response is complete. Defaults to TRUE. |
prompt_build |
Include the context and additional prompt as part of the request |
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) |
... |
Optional arguments; currently unused. |
The output from the model currently in use.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.