🐛 fix(base.py): fix issue where CustomComponentCreator.to_list() method always returns None

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-09 11:09:44 -03:00
commit 2f24fca1f2

View file

@ -37,6 +37,7 @@ class CustomComponentCreator(LangChainTypeCreator):
except AttributeError as exc:
logger.error(f"CustomComponent {name} not loaded: {exc}")
return None
return None
def to_list(self) -> List[str]:
return list(self.type_to_loader_dict.keys())