LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Update base_connector.py to compatible with latest sdk (#882)
ali1e56bd5beb2d
diff --git a/backend/workflow_manager/endpoint_v2/base_connector.py b/backend/workflow_manager/endpoint_v2/base_connector.pyindex 8b34910d7..254d3c9d1 100644--- a/backend/workflow_manager/endpoint_v2/base_connector.py+++ b/backend/workflow_manager/endpoint_v2/base_connector.py@@ -89,7 +89,9 @@ class BaseConnector(ExecutionFileHandler):if check_feature_flag_status(FeatureFlag.REMOTE_FILE_STORAGE):file_system = FileSystem(FileStorageType.WORKFLOW_EXECUTION)file_storage = file_system.get_file_storage()- file_contents = file_storage.read(path=file_path, encoding="utf-8")+ file_contents = file_storage.read(+ path=file_path, mode="r", encoding="utf-8"+ )schema: dict[str, Any] = json.load(file_contents)else:with open(file_path, encoding="utf-8") as file: