cboettig commited on
Commit
7e5cafc
·
1 Parent(s): 1ec6b81

history is forever

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -147,8 +147,8 @@ server <- function(input, output, session) {
147
  observeEvent(input$user_msg, {
148
  stream <- chat$chat(input$chat)
149
 
150
- # optional, remember previous discussion
151
- #chat_append("chat", stream)
152
 
153
  # Parse response
154
  response <- jsonlite::fromJSON(stream)
 
147
  observeEvent(input$user_msg, {
148
  stream <- chat$chat(input$chat)
149
 
150
+ # Note: ellmer will preserve full chat history automatically.
151
+ # Reset wiht chat$set_turns(NULL)
152
 
153
  # Parse response
154
  response <- jsonlite::fromJSON(stream)