diff --git a/.changeset/ninety-goats-look.md b/.changeset/ninety-goats-look.md new file mode 100644 index 0000000..6a9811a --- /dev/null +++ b/.changeset/ninety-goats-look.md @@ -0,0 +1,6 @@ +--- +"llama_parse": patch +"llama-cloud-services-py": patch +--- + +Remove extension filter diff --git a/py/llama_cloud_services/parse/base.py b/py/llama_cloud_services/parse/base.py index f015ecd..1de0c62 100644 --- a/py/llama_cloud_services/parse/base.py +++ b/py/llama_cloud_services/parse/base.py @@ -751,11 +751,9 @@ class LlamaParse(BasePydanticReader): file_path = str(file_input) file_ext = os.path.splitext(file_path)[1].lower() if file_ext not in SUPPORTED_FILE_TYPES: - raise Exception( - f"Currently, only the following file types are supported: {SUPPORTED_FILE_TYPES}\n" - f"Current file type: {file_ext}" - ) - mime_type = mimetypes.guess_type(file_path)[0] + mime_type = "application/octet-stream" + else: + mime_type = mimetypes.guess_type(file_path)[0] # Open the file here for the duration of the async context # load data, set the mime type fs = fs or get_default_fs()