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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor(batches): drop docstrings restating the org fallbacks
mateo-berri95d721ffe60e
diff --git a/enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py b/enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.pyindex 64a86387c39..13e9e5093a8 100644--- a/enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py+++ b/enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py@@ -143,9 +143,6 @@ class CheckBatchCost:return Noneasync def _get_org_id(self, job: "LiteLLM_ManagedObjectTable", batch_id: str) -> str | None:- """Organization to bill the batch against, snapshotted on the row at creation- like team_id. Rows created before the org_id column existed carry None, so they- fall back to the creating key's org (or its team's) as resolved today."""org_id = getattr(job, "org_id", None)if org_id:return org_iddiff --git a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py b/enterprise/litellm_enterprise/proxy/hooks/managed_files.pyindex 6474475f1bf..486904d0abe 100644--- a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py+++ b/enterprise/litellm_enterprise/proxy/hooks/managed_files.py@@ -281,10 +281,6 @@ class _PROXY_LiteLLMManagedFiles(CustomLogger, BaseFileEndpoints):verbose_logger.debug(f"LiteLLM Managed File object with id={file_id} stored in db: {result}")async def _resolve_creator_org_id(self, user_api_key_dict: UserAPIKeyAuth) -> Optional[str]:- """Organization to snapshot on the managed object row, like team_id. A key that- belongs to an org only through its team carries no org_id on the auth object, so- resolve the team's organization at creation time; costing then bills the org the- batch was submitted under even if the key or team moves before it completes."""if user_api_key_dict.org_id:return user_api_key_dict.org_idif not user_api_key_dict.team_id: