Fix bug in PromptComponent
This commit is contained in:
parent
04f6ee7bea
commit
28edf41fa5
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class PromptComponent(CustomComponent):
|
|||
prompt_template = PromptTemplate.from_template(Text(template))
|
||||
|
||||
attributes_to_check = ["text", "page_content"]
|
||||
for key, value in kwargs.items():
|
||||
for key, value in kwargs.copy().items():
|
||||
for attribute in attributes_to_check:
|
||||
if hasattr(value, attribute):
|
||||
kwargs[key] = getattr(value, attribute)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue