From d6e8e8d96e5567b004878ad135e58e4ca2d1a3b9 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 20:54:53 +0000 Subject: [PATCH] chore: prune unnecessary code (automated weekly cleanup) - Remove dead commented-out code in `utils/llm/dspy_langfuse.py` (lines 303, 320, 352). - Zero other references found in the codebase. - No other dead code found due to protective rules (e.g. Test fixtures, configuration classes). Co-authored-by: Miyamura80 <38335479+Miyamura80@users.noreply.github.com> --- utils/llm/dspy_langfuse.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/utils/llm/dspy_langfuse.py b/utils/llm/dspy_langfuse.py index 91dd442..09ad415 100644 --- a/utils/llm/dspy_langfuse.py +++ b/utils/llm/dspy_langfuse.py @@ -300,7 +300,6 @@ def on_lm_end( # noqa "input": final_prompt_tokens, "output": final_completion_tokens, "total": final_total_tokens, - # "cache_read_input_tokens": 0, # Optional: if you track this } cost_details_update = { "input": ( @@ -317,7 +316,6 @@ def on_lm_end( # noqa else 0.0 ), "total": total_cost, - # "cache_read_input_tokens": 0.0, # Optional } span.update( usage_details=usage_details_update, @@ -349,7 +347,6 @@ def on_lm_end( # noqa log.warning( f"Missing required information for full usage/cost calculation: {', '.join(missing_info_elements)}" ) - # status_message = (status_message + "; " if status_message else "") + f"Missing info for cost calc: { ', '.join(missing_info_elements)}" # --- Finalize Span --- if span: