Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

style(batches): apply ruff format to batch cost ownership helper

mateo-berri1f0d9c87ad14
diff --git a/litellm/proxy/openai_files_endpoints/common_utils.py b/litellm/proxy/openai_files_endpoints/common_utils.py
index c24d7b6e9de..551ba63058d 100644
--- a/litellm/proxy/openai_files_endpoints/common_utils.py
+++ b/litellm/proxy/openai_files_endpoints/common_utils.py
@@ -1343,9 +1343,7 @@ async def update_batch_in_database(
"updated_at": litellm.utils.get_utc_datetime(),
}
- poller_owns: Final = (
- batch_cost_poller_is_active() if poller_owns_accounting is None else poller_owns_accounting
- )
+ poller_owns: Final = batch_cost_poller_is_active() if poller_owns_accounting is None else poller_owns_accounting
if db_status == "complete" and not poller_owns:
update_data["batch_processed"] = True