Update chain.invoke() argument to use a dictionary for input value
This commit is contained in:
parent
a060b8de18
commit
be32d57434
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class ConversationChainComponent(CustomComponent):
|
|||
chain = ConversationChain(llm=llm)
|
||||
else:
|
||||
chain = ConversationChain(llm=llm, memory=memory)
|
||||
result = chain.invoke(inputs)
|
||||
result = chain.invoke({"input": input_value})
|
||||
if hasattr(result, "content") and isinstance(result.content, str):
|
||||
result = result.content
|
||||
elif isinstance(result, str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue