mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Add CustomLogger.runs_on_no_log so callbacks can opt out of the no-log skip
This commit is contained in:
parent
2cfba944ae
commit
129220bd6b
1 changed files with 6 additions and 0 deletions
|
|
@ -59,6 +59,12 @@ _BASE64_INLINE_PATTERN: Final = re.compile(
|
|||
|
||||
|
||||
class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class
|
||||
|
||||
# Set True on callbacks that must still run for `no-log` requests --
|
||||
# metering, billing and budget enforcement, as opposed to observability.
|
||||
# `no-log` means "do not send this request to logging integrations"; it is
|
||||
# not a way for a caller to opt out of being billed.
|
||||
runs_on_no_log: bool = False
|
||||
# Class variables or attributes
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue