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",