if (FALSE) {
# Assuming there are two GenAI objects named 'genai.model' and 'another.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 "%>%"
converted.history = genai.model %>%
chat.history.convert(to.genai.object = another.genai.model)
# Method 2: use the reference operator "$"
converted.history = genai.model$chat.history.convert(to.genai.object = another.genai.model)
# Method 3: use the function chat.history.convert() directly
converted.history = chat.history.convert(from.genai.object = genai.model,
to.genai.object = another.genai.model)
}
Run the code above in your browser using DataLab