mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(litellm_logging): declare _defer_async_logging and _enqueue_deferred_logging on Logging class for mypy
This commit is contained in:
parent
801d7713f4
commit
8090b29a4b
1 changed files with 6 additions and 0 deletions
|
|
@ -416,6 +416,12 @@ class Logging(LiteLLMLoggingBaseClass):
|
|||
"model": model,
|
||||
}
|
||||
|
||||
# Set by proxy request handlers to defer spend-log fire until after
|
||||
# post_call guardrails have run; the @client decorator then stores the
|
||||
# enqueue closure here instead of firing it immediately.
|
||||
self._defer_async_logging: bool = False
|
||||
self._enqueue_deferred_logging: Optional[Callable[[], None]] = None
|
||||
|
||||
def process_dynamic_callbacks(self):
|
||||
"""
|
||||
Initializes CustomLogger compatible callbacks in self.dynamic_* callbacks
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue