Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /BerriAI_litellm /litellm /_internal_context.py
| """ | |
| Internal request context for LiteLLM. | |
| Provides a ContextVar-based mechanism for internal signals that must not | |
| be settable from user input. Context variables are scoped to the current | |
| asyncio task and cannot be injected via HTTP request bodies. | |
| """ | |
| from contextvars import ContextVar | |
| from typing import Final | |
| # When True, suppresses async logging and billing for internal sub-calls | |
| # (e.g., emulated file-search steps that make nested LLM calls). | |
| is_internal_call: Final[ContextVar[bool]] = ContextVar("is_internal_call", default=False) | |
Xet Storage Details
- Size:
- 544 Bytes
- Xet hash:
- 3160ba2fe4cc232cd683b1531e6d97bd0c29809989cf045a1f3d87623c5215f5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.