Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
Rename platform_llm_id to platform_model_id in LLMTokenCostReport for consistency
Louis Choquelef5f1bda39d8
diff --git a/pipelex/cogt/llm/llm_report.py b/pipelex/cogt/llm/llm_report.pyindex eb27f1dec..a72b9ce75 100644--- a/pipelex/cogt/llm/llm_report.py+++ b/pipelex/cogt/llm/llm_report.py@@ -35,7 +35,7 @@ class LLMTokenCostReport(BaseModel):model_type: str = "llm"job_metadata: JobMetadatainference_model_name: str- platform_llm_id: str+ platform_model_id: strnb_tokens_by_category: NbTokensByCategoryDictcosts_by_token_category: CostsByCategoryDict@@ -47,7 +47,7 @@ class LLMTokenCostReport(BaseModel):dict_for_llm: dict[str, Any] = {LLMTokenCostReportField.MODEL_TYPE: self.model_type,LLMTokenCostReportField.LLM_NAME: self.inference_model_name,- LLMTokenCostReportField.PLATFORM_LLM_ID: self.platform_llm_id,+ LLMTokenCostReportField.PLATFORM_LLM_ID: self.platform_model_id,}the_dict.update(dict_for_llm)dict_for_nb_tokens = {diff --git a/pipelex/cogt/usage/cost_registry.py b/pipelex/cogt/usage/cost_registry.pyindex 91b3abe43..cb62c090b 100644--- a/pipelex/cogt/usage/cost_registry.py+++ b/pipelex/cogt/usage/cost_registry.py@@ -222,7 +222,7 @@ class CostRegistry(RootModel[CostRegistryRoot]):model_type=tokens_usage.model_type,job_metadata=tokens_usage.job_metadata,inference_model_name=tokens_usage.inference_model_name,- platform_llm_id=tokens_usage.inference_model_id,+ platform_model_id=tokens_usage.inference_model_id,nb_tokens_by_category=tokens_usage.nb_tokens_by_category,costs_by_token_category=costs_by_token_category,)