chat_history.data.frame | R Documentation |
chat_history()
when the input is a data.frame
Creates a chat_history
object from a data frame.
## S3 method for class 'data.frame'
chat_history(chat_history)
chat_history |
A data frame with 'role' and 'content' columns, where 'role' is either 'user', 'assistant', or 'system', and 'content' is a character string representing a chat message |
A valid chat history data.frame
(of class chat_history
),
with the 'role' and 'content' columns as specified in the input data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.