mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
refactor(batches): drop docstrings restating the org fallbacks
This commit is contained in:
parent
814c151b02
commit
95d721ffe6
2 changed files with 0 additions and 7 deletions
|
|
@ -143,9 +143,6 @@ class CheckBatchCost:
|
|||
return None
|
||||
|
||||
async 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_id
|
||||
|
|
|
|||
|
|
@ -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_id
|
||||
if not user_api_key_dict.team_id:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue