chat_history_example <- list(
list(role = "user", content = "Hello, World!"),
list(role = "system", content = "System message"),
list(role = "assistant", content = "Hi, how can I help?")
)
if (FALSE) {
style_chat_history(chat_history_example)
}
Run the code above in your browser using DataLab