This commit is contained in:
Sebastian Husch Lee
2026-09-23 13:43:42 +02:00
parent b76e0da6fb
commit c0ddb90251
@@ -113,9 +113,9 @@ class DocumentToImageContent:
:returns:
Dictionary containing one key:
- "image_contents": ImageContents created from the processed documents. These contain base64-encoded image
data and metadata. The order corresponds to the order of the input documents. A document that is missing the
required metadata keys, has an invalid file path, or has an unsupported MIME type gets None in its
position and a logged warning with the reason.
data and metadata. The order corresponds to the order of the input documents. A document that is
missing the required metadata keys, has an invalid file path, or has an unsupported MIME type gets
None in its position and a logged warning with the reason.
"""
if not documents:
return {"image_contents": []}