Update LLMChainComponent signature
This commit is contained in:
parent
4f5f8258f3
commit
cb5076cba0
1 changed files with 1 additions and 1 deletions
|
|
@ -28,5 +28,5 @@ class LLMChainComponent(CustomComponent):
|
||||||
prompt: BasePromptTemplate,
|
prompt: BasePromptTemplate,
|
||||||
llm: BaseLanguageModel,
|
llm: BaseLanguageModel,
|
||||||
memory: Optional[BaseMemory] = None,
|
memory: Optional[BaseMemory] = None,
|
||||||
) -> Union[Chain, Callable]:
|
) -> Union[Chain, Callable,LLMChain]:
|
||||||
return LLMChain(prompt=prompt, llm=llm, memory=memory)
|
return LLMChain(prompt=prompt, llm=llm, memory=memory)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue