From 30a12e631535dee16deeee18143217180a35cce9 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 5 May 2023 22:53:12 +0200 Subject: [PATCH] update langchain --- matrix_pygmalion_bot/bot/ai/langchain_memory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix_pygmalion_bot/bot/ai/langchain_memory.py b/matrix_pygmalion_bot/bot/ai/langchain_memory.py index 32103b3..525a2e7 100644 --- a/matrix_pygmalion_bot/bot/ai/langchain_memory.py +++ b/matrix_pygmalion_bot/bot/ai/langchain_memory.py @@ -6,7 +6,8 @@ from langchain.chains.llm import LLMChain from langchain.memory.chat_memory import BaseChatMemory, BaseMemory from langchain.memory.prompt import SUMMARY_PROMPT from langchain.prompts.base import BasePromptTemplate -from langchain.schema import BaseLanguageModel, BaseMessage, BaseChatMessageHistory, BaseMemory, get_buffer_string +from langchain.base_language import BaseLanguageModel +from langchain.schema import BaseMessage, BaseChatMessageHistory, BaseMemory, get_buffer_string from langchain.schema import AIMessage, HumanMessage, SystemMessage, ChatMessage from langchain.memory.chat_message_histories.in_memory import ChatMessageHistory