From ad6f3a3fbb6bc8621b34992c7c7378612c8a2324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:20:28 +0100 Subject: [PATCH] Fix `RunnableWithMessageHistory` import (#980) --- packages/jupyter-ai/jupyter_ai/chat_handlers/default.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py index a51ef29e3..3e8f194b3 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py @@ -9,7 +9,8 @@ ) from jupyter_ai_magics.providers import BaseProvider from langchain_core.messages import AIMessageChunk -from langchain_core.runnables import ConfigurableFieldSpec, RunnableWithMessageHistory +from langchain_core.runnables import ConfigurableFieldSpec +from langchain_core.runnables.history import RunnableWithMessageHistory from ..models import HumanChatMessage from .base import BaseChatHandler, SlashCommandRoutingType