From ac77f914cc565d206565175b1defa662be1134e0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 17:36:12 +0000 Subject: [PATCH] chore: prune unnecessary code (automated weekly cleanup) - Remove commented-out dead code blocks in `utils/llm/dspy_langfuse.py` (lines 303, 320, 352). - Ensure no test files, public APIs, or configuration settings are accidentally removed. 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: