diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py index 9f179de51..2a21d2663 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py @@ -19,8 +19,7 @@ from jupyter_ai.models import AgentChatMessage, ChatMessage, HumanChatMessage from jupyter_ai_magics.providers import BaseProvider -# necessary to prevent circular import -from pydantic import BaseModel +from langchain.pydantic_v1 import BaseModel if TYPE_CHECKING: from jupyter_ai.handlers import RootChatHandler