Kelechi Osuji commited on
Commit
e283fee
·
1 Parent(s): bed90e7

using RunnableWithMessageHistory by passing the correct runnable argument

Browse files
Files changed (1) hide show
  1. workflow.py +1 -1
workflow.py CHANGED
@@ -25,7 +25,7 @@ def get_workflow():
25
 
26
  # Use RunnableWithMessageHistory for session memory
27
  conversation_chain = RunnableWithMessageHistory(
28
- llm=chat_model,
29
  get_session_history=lambda: get_session_history(memory),
30
  memory=memory,
31
  verbose=True,
 
25
 
26
  # Use RunnableWithMessageHistory for session memory
27
  conversation_chain = RunnableWithMessageHistory(
28
+ runnable=chat_model,
29
  get_session_history=lambda: get_session_history(memory),
30
  memory=memory,
31
  verbose=True,