| chat_claude | R Documentation |
Convenience wrapper for 'Anthropic' 'Claude' models.
chat_claude(prompt, model = "claude-3-5-sonnet-latest", ...)
prompt |
Character. The user message to send. |
model |
Character. Model name (e.g., "gpt-4o", "claude-3-5-sonnet-latest", "llama3.2"). |
... |
Additional parameters passed to the API. |
The assistant's response as a character string, or a list when
history is in use. See chat for details.
## Not run:
chat_claude("Explain the theory of relativity")
chat_claude("Write a poem", model = "claude-3-5-haiku-latest")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.