diff --git a/libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py b/libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py index 0e66c849e..c0b27d345 100644 --- a/libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py +++ b/libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py @@ -133,7 +133,7 @@ def load_data( with open(file_path, "rb") as fi: poller = self.client_.begin_analyze_document( self.model, - analyze_request=fi, + body=fi, content_type="application/octet-stream", output_content_format=self.output_content_format, )