From b8233ded239e59c49954455f54fe27abe1b2e148 Mon Sep 17 00:00:00 2001 From: gbaian10 <34255899+gbaian10@users.noreply.github.com> Date: Tue, 13 Aug 2024 02:16:59 +0800 Subject: [PATCH] docs: fix filter_messages error in manage-conversation-history.ipynb (#1315) fix: #1314 --- examples/memory/manage-conversation-history.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/memory/manage-conversation-history.ipynb b/examples/memory/manage-conversation-history.ipynb index 5b5129a15..066d38ad6 100644 --- a/examples/memory/manage-conversation-history.ipynb +++ b/examples/memory/manage-conversation-history.ipynb @@ -269,7 +269,7 @@ "\n", "def filter_messages(messages: list):\n", " # This is very simple helper function which only ever uses the last two messages\n", - " return messages[-1:]\n", + " return messages[-2:]\n", "\n", "\n", "# Define the function that calls the model\n",