if (FALSE) {
# Start a new chat and print the response to the console
chat("What's the weather like today?")
# Continue the chat, but return the response as a character vector
response_text <- chat("What about tomorrow's weather?", output = "message")
}
Run the code above in your browser using DataLab