| init_chat | R Documentation |
Factory function that creates an ellmer::Chat object based on
the configured provider. Reads from
options(shidashi.chat_provider), shidashi.chat_model,
and shidashi.chat_base_url. These arguments are passed to
chat.
init_chat(
system_prompt = getOption("shidashi.chat_system_prompt", NULL),
provider = getOption("shidashi.chat_provider", "anthropic"),
base_url = getOption("shidashi.chat_base_url", NULL)
)
system_prompt |
character; the system prompt. Defaults to
|
provider |
character; provider name or provider name with models.
Defaults to |
base_url |
character or |
An ellmer::Chat R6 object (tools not yet bound).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.