fix: bump min_unstructured_version for UnstructuredAPIFileLoader (#11025)

**Description:** New metadata fields were added to
`unstructured==0.10.15`, and our hosted api has been updated to reflect
this. When users call `partition_via_api` with an older version of the
library, they'll hit a parsing error related to the new fields.
pull/11113/head
Austin Walker 11 months ago committed by GitHub
parent 75b3893daf
commit bb41252dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -253,10 +253,7 @@ class UnstructuredAPIFileLoader(UnstructuredFileLoader):
):
"""Initialize with file path."""
if isinstance(file_path, str):
validate_unstructured_version(min_unstructured_version="0.6.2")
else:
validate_unstructured_version(min_unstructured_version="0.6.3")
validate_unstructured_version(min_unstructured_version="0.10.15")
self.url = url
self.api_key = api_key

Loading…
Cancel
Save