Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions utils/llm/dspy_langfuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": (
Expand All @@ -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,
Expand Down Expand Up @@ -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:
Expand Down
Loading