LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Added missing delta in api v2 (#759)
alie4a051d82117
diff --git a/backend/api_v2/api_deployment_views.py b/backend/api_v2/api_deployment_views.pyindex c3265e75d..6530877d2 100644--- a/backend/api_v2/api_deployment_views.py+++ b/backend/api_v2/api_deployment_views.py@@ -86,9 +86,7 @@ class DeploymentExecution(views.APIView):response_status = status.HTTP_422_UNPROCESSABLE_ENTITYif 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={diff --git a/backend/api_v2/deployment_helper.py b/backend/api_v2/deployment_helper.pyindex b35bb0a3a..9dc0488fb 100644--- a/backend/api_v2/deployment_helper.py+++ b/backend/api_v2/deployment_helper.py@@ -18,6 +18,8 @@ from django.core.files.uploadedfile import UploadedFilefrom rest_framework.request import Requestfrom rest_framework.serializers import Serializerfrom rest_framework.utils.serializer_helpers import ReturnDict+from utils.constants import Account, CeleryQueue+from utils.local_context import StateStorefrom workflow_manager.endpoint_v2.destination import DestinationConnectorfrom workflow_manager.endpoint_v2.source import SourceConnectorfrom workflow_manager.workflow_v2.dto import ExecutionResponse@@ -33,8 +35,11 @@ class DeploymentHelper(BaseAPIKeyValidator):def validate_parameters(request: Request, **kwargs: Any) -> None:"""Validate api_name for API deployments."""api_name = kwargs.get("api_name") or request.data.get("api_name")+ org_name = kwargs.get("org_name") or request.data.get("org_name")if not api_name:raise InvalidAPIRequest("Missing params api_name")+ # Set organization in state store for API+ StateStore.set(Account.ORGANIZATION_ID, org_name)@staticmethoddef validate_and_process(@@ -162,7 +167,7 @@ class DeploymentHelper(BaseAPIKeyValidator):hash_values_of_files=hash_values_of_files,timeout=timeout,execution_id=execution_id,- include_metadata=include_metadata,+ queue=CeleryQueue.CELERY_API_DEPLOYMENTS,use_file_history=use_file_history,)result.status_api = DeploymentHelper.construct_status_endpoint(