📝 docs(config.yaml): add documentation link for MotorheadMemory integration

🐛 fix(memories.py): hide and make chat_memory field optional for MotorheadMemory frontend node
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-25 16:32:01 -03:00
commit a3417d047b
2 changed files with 6 additions and 0 deletions

View file

@ -153,6 +153,8 @@ memories:
documentation: "https://python.langchain.com/docs/modules/memory/how_to/vectorstore_retriever_memory"
MongoDBChatMessageHistory:
documentation: "https://python.langchain.com/docs/modules/memory/integrations/mongodb_chat_message_history"
MotorheadMemory:
documentation: "https://python.langchain.com/docs/integrations/memory/motorhead_memory"
prompts:
ChatMessagePromptTemplate:
documentation: "https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/msg_prompt_templates"

View file

@ -94,6 +94,10 @@ class MemoryFrontendNode(FrontendNode):
field.show = False
field.required = False
if name == "MotorheadMemory" and field.name == "chat_memory":
field.show = False
field.required = False
class PostgresChatMessageHistoryFrontendNode(MemoryFrontendNode):
name: str = "PostgresChatMessageHistory"