Browse Source

update langchain

master
Hendrik Langer 2 years ago
parent
commit
30a12e6315
  1. 3
      matrix_pygmalion_bot/bot/ai/langchain_memory.py

3
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.chat_memory import BaseChatMemory, BaseMemory
from langchain.memory.prompt import SUMMARY_PROMPT from langchain.memory.prompt import SUMMARY_PROMPT
from langchain.prompts.base import BasePromptTemplate 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.schema import AIMessage, HumanMessage, SystemMessage, ChatMessage
from langchain.memory.chat_message_histories.in_memory import ChatMessageHistory from langchain.memory.chat_message_histories.in_memory import ChatMessageHistory

Loading…
Cancel
Save