Fix: Simplify _increment_llm_cost function by removing unnecessary line breaks
This commit is contained in:
parent
5f21f8fae0
commit
50c2a61b85
1 changed files with 1 additions and 3 deletions
|
|
@ -10,9 +10,7 @@ from log_features.models import OptimizationEvents, OptimizationFeatures, Reposi
|
|||
|
||||
async def _increment_llm_cost(trace_id: str, cost: float) -> None:
|
||||
"""Atomically increment llm_cost for the given trace_id."""
|
||||
await OptimizationEvents.objects.filter(trace_id=trace_id).aupdate(
|
||||
llm_cost=Coalesce(F("llm_cost"), 0.0) + cost
|
||||
)
|
||||
await OptimizationEvents.objects.filter(trace_id=trace_id).aupdate(llm_cost=Coalesce(F("llm_cost"), 0.0) + cost)
|
||||
|
||||
|
||||
async def get_repository(owner: str | None, repo_name: str | None) -> Repositories | None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue