diff --git a/examples/memory/manage-conversation-history.ipynb b/examples/memory/manage-conversation-history.ipynb index 94da14225..2cdeb85d0 100644 --- a/examples/memory/manage-conversation-history.ipynb +++ b/examples/memory/manage-conversation-history.ipynb @@ -138,7 +138,7 @@ "\n", "# Define the function that calls the model\n", "def call_model(state: MessagesState):\n", - " response = model.invoke(state[\"messages\"])\n", + " response = bound_model.invoke(state[\"messages\"])\n", " # We return a list, because this will get added to the existing list\n", " return {\"messages\": response}\n", "\n", @@ -275,7 +275,7 @@ "# Define the function that calls the model\n", "def call_model(state: MessagesState):\n", " messages = filter_messages(state[\"messages\"])\n", - " response = model.invoke(messages)\n", + " response = bound_model.invoke(messages)\n", " # We return a list, because this will get added to the existing list\n", " return {\"messages\": response}\n", "\n",