From 19cbb25631fb91c820d39ff2f66896674ed9055c Mon Sep 17 00:00:00 2001 From: Pierre-Loic Doulcet Date: Wed, 14 Jan 2026 19:13:39 +0100 Subject: [PATCH] remove extension filter (#1075) * remove extension filter * changeset * Update ninety-goats-look.md Make it a patch version * Update package.json back out of version bump * Update pyproject.toml back out of version bump * Update package.json back out of version bump * Update pyproject.toml back out of version bump --------- Co-authored-by: Adrian Lyjak --- .changeset/ninety-goats-look.md | 6 ++++++ py/llama_cloud_services/parse/base.py | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .changeset/ninety-goats-look.md 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()