Skip to content

Commit

Permalink
fix type check stronger
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Dec 12, 2024
1 parent e6cbb8c commit 38495ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama-index-core/llama_index/core/multi_modal_llms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _validate_component_inputs(self, input: Dict[str, Any]) -> Dict[str, Any]:
if not isinstance(input["image_documents"], list):
raise ValueError("image_documents must be a list.")
for doc in input["image_documents"]:
if not isinstance(doc, ImageDocument):
if not isinstance(doc, (ImageDocument, ImageNode)):
raise ValueError(
"image_documents must be a list of ImageNode objects."
)
Expand Down

0 comments on commit 38495ff

Please sign in to comment.