From 335990c1453b0160eee868db2a65e734e63cf890 Mon Sep 17 00:00:00 2001 From: TomTom101 Date: Tue, 28 May 2024 11:42:17 +0200 Subject: [PATCH] wip: hint to install langchain_community --- examples/foundational/07b-interruptible-langchain.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/foundational/07b-interruptible-langchain.py b/examples/foundational/07b-interruptible-langchain.py index cb375fd0f..c1c467f9f 100644 --- a/examples/foundational/07b-interruptible-langchain.py +++ b/examples/foundational/07b-interruptible-langchain.py @@ -31,13 +31,12 @@ try: from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder from langchain_community.chat_message_histories import ChatMessageHistory from langchain_core.chat_history import BaseChatMessageHistory - from langchain_core.runnables.history import (BaseChatMessageHistory, - RunnableWithMessageHistory) + from langchain_core.runnables.history import RunnableWithMessageHistory from langchain_openai import ChatOpenAI except ModuleNotFoundError as e: logger.exception( - "You need to `pip install langchain_openai` for this example. Also, be sure to set `OPENAI_API_KEY` in the environment variable." + "You need to `pip install langchain_openai langchain_community` for this example. Also, be sure to set `OPENAI_API_KEY` in the environment variable." ) raise Exception(f"Missing module: {e}")