Skip to content

Commit d426f5f

Browse files
author
Daniel Lorch
committed
chore: fix metering format
1 parent 5907159 commit d426f5f

File tree

1 file changed

+6
-4
lines changed
  • lib/idp_common_pkg/idp_common/extraction

1 file changed

+6
-4
lines changed

lib/idp_common_pkg/idp_common/extraction/service.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,12 @@ def process_document_section(self, document: Document, section_id: str) -> Docum
819819
# Create empty result structure without invoking LLM
820820
extracted_fields = {}
821821
metering = {
822-
"input_tokens": 0,
823-
"output_tokens": 0,
824-
"invocation_count": 0,
825-
"total_cost": 0.0,
822+
f"Extraction/{self.config.extraction.model}": {
823+
"input_tokens": 0,
824+
"output_tokens": 0,
825+
"invocation_count": 0,
826+
"total_cost": 0.0,
827+
}
826828
}
827829
total_duration = 0.0
828830
parsing_succeeded = True

0 commit comments

Comments
 (0)