R/genai.openai.chat.history.reset.R

Defines functions genai.openai.chat.history.reset

#' @noRd
genai.openai.chat.history.reset = function(genai.openai.object) {
  genai.openai.object$chat.history$messages = list(
    list(
      role = "system",
      content = "You are a helpful assistant."
    )
  )
}

Try the GenAI package in your browser

Any scripts or data that you put into this service are public.

GenAI documentation built on May 29, 2024, 11:58 a.m.