Skip to content

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

changed condition to remove metadata highglight data (#734)

vishnuszipstack442e2e18f7d0
diff --git a/backend/api/api_deployment_views.py b/backend/api/api_deployment_views.py
index 2ac765469..bce65aabe 100644
--- a/backend/api/api_deployment_views.py
+++ b/backend/api/api_deployment_views.py
@@ -86,9 +86,7 @@ class DeploymentExecution(views.APIView):
response_status = status.HTTP_422_UNPROCESSABLE_ENTITY
if response.execution_status == CeleryTaskState.COMPLETED.value:
response_status = status.HTTP_200_OK
- if include_metadata:
- response.remove_result_metadata_keys(keys_to_remove=["highlight_data"])
- else:
+ if not include_metadata:
response.remove_result_metadata_keys()
return Response(
data={