diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py index 02256f4eb..c8d0418ff 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