Skip to content

Commit

Permalink
history is forever
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Jan 7, 2025
1 parent 1ec6b81 commit 7e5cafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e5cafc

Please sign in to comment.