From d98c539d892c3e4adb978bbc24e622760a0214b7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 1 Nov 2025 18:48:11 -0400 Subject: [PATCH] refac --- backend/open_webui/retrieval/loaders/main.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index e93d443bf6..734d1ef73f 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -392,15 +392,6 @@ class Loader: loader = MistralLoader( api_key=self.kwargs.get("MISTRAL_OCR_API_KEY"), file_path=file_path ) - elif ( - self.engine == "external" - and self.kwargs.get("MISTRAL_OCR_API_KEY") != "" - and file_ext - in ["pdf"] # Mistral OCR currently only supports PDF and images - ): - loader = MistralLoader( - api_key=self.kwargs.get("MISTRAL_OCR_API_KEY"), file_path=file_path - ) else: if file_ext == "pdf": loader = PyPDFLoader(