Skip to content

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

[FIX] Fix for usage duplication when line-item type is selected (#1107)

Deepak K4f9904b6acee
diff --git a/prompt-service/src/unstract/prompt_service/main.py b/prompt-service/src/unstract/prompt_service/main.py
index a66d2778f..af34d5f82 100644
--- a/prompt-service/src/unstract/prompt_service/main.py
+++ b/prompt-service/src/unstract/prompt_service/main.py
@@ -277,13 +277,7 @@ def prompt_processor() -> Any:
metadata=metadata,
execution_source=execution_source,
)
- metadata = query_usage_metadata(token=platform_key, metadata=metadata)
# TODO: Handle metrics for line-item extraction
- response = {
- PSKeys.METADATA: metadata,
- PSKeys.OUTPUT: structured_output,
- PSKeys.METRICS: metrics,
- }
continue
except APIError as e:
app.logger.error(