From ec18baade2cc95da42b9fe43e19167ccbe1e22bd Mon Sep 17 00:00:00 2001 From: Hideyuki Kagami Date: Fri, 3 Jan 2025 19:51:42 +0900 Subject: [PATCH] fix: update parameter name in AzureAIDocumentIntelligenceLoader --- .../kotaemon/loaders/azureai_document_intelligence_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )