fix: don't add to the page if type is empty
This commit is contained in:
parent
c4faf3f383
commit
b85eeb4fe8
1 changed files with 3 additions and 1 deletions
|
|
@ -44,5 +44,7 @@ def build_langchain_types_dict():
|
||||||
|
|
||||||
all_types = {}
|
all_types = {}
|
||||||
for creator in creators:
|
for creator in creators:
|
||||||
all_types.update(creator.to_dict())
|
created_types = creator.to_dict()
|
||||||
|
if created_types[creator.type_name].values():
|
||||||
|
all_types.update(created_types)
|
||||||
return all_types
|
return all_types
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue