| chat | R Documentation |
Add a message to an existing conversation and get a response.
chat(conversation, message, ...)
conversation |
An hf_conversation object from hf_conversation(). |
message |
Character string. The user message. |
... |
Additional parameters passed to the model. |
Updated conversation object with new messages in history.
## Not run:
convo <- hf_conversation()
convo <- chat(convo, "Tell me a joke")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.