Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

FIX: Return highlight data in API response (#858)

Deepak Kec0280449510
diff --git a/backend/api_v2/deployment_helper.py b/backend/api_v2/deployment_helper.py
index 149f38e1b..ceaef536d 100644
--- a/backend/api_v2/deployment_helper.py
+++ b/backend/api_v2/deployment_helper.py
@@ -173,9 +173,7 @@ class DeploymentHelper(BaseAPIKeyValidator):
result.status_api = DeploymentHelper.construct_status_endpoint(
api_endpoint=api.api_endpoint, execution_id=execution_id
)
- if include_metadata:
- result.remove_result_metadata_keys(keys_to_remove=["highlight_data"])
- else:
+ if not include_metadata:
result.remove_result_metadata_keys()
except Exception as error:
DestinationConnector.delete_api_storage_dir(