From 7e5cafc4075cc9319eb1cf6b3f5452479b4333fe Mon Sep 17 00:00:00 2001 From: Carl Boettiger Date: Tue, 7 Jan 2025 20:48:07 +0000 Subject: [PATCH] history is forever --- app.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.R b/app.R index b4d5f85..fb683ce 100644 --- a/app.R +++ b/app.R @@ -147,8 +147,8 @@ server <- function(input, output, session) { observeEvent(input$user_msg, { stream <- chat$chat(input$chat) - # optional, remember previous discussion - #chat_append("chat", stream) + # Note: ellmer will preserve full chat history automatically. + # Reset wiht chat$set_turns(NULL) # Parse response response <- jsonlite::fromJSON(stream)