View source: R/chat.history.reset.R
chat.history.reset | R Documentation |
This function resets the chat history along with a generative AI object.
chat.history.reset(genai.object)
genai.object |
A generative AI object containing necessary and correct information. |
Providing accurate and valid information for each argument is crucial for successful chat
generation by the generative AI model. If any parameter is incorrect, the function responds with an
error message based on the API feedback. To view all supported generative AI models, use the
function available.models
.
GenAI - R Package "GenAI" Documentation
## Not run:
# Assuming there is a GenAI object named 'genai.model' supporting this
# function, please refer to the "Live Demo in Colab" above for real
# examples. The following examples are just some basic guidelines.
# Method 1 (recommended): use the pipe operator "%>%"
genai.model %>%
chat.history.reset()
# Method 2: use the reference operator "$"
genai.model$chat.history.reset()
# Method 3: use the function chat.history.reset() directly
chat.history.reset(genai.object = genai.model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.