mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
add message_logging on Custom Logger
This commit is contained in:
parent
176397cfca
commit
af5b87a8de
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ from litellm.types.utils import AdapterCompletionStreamWrapper, ModelResponse
|
||||||
|
|
||||||
class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class
|
class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class
|
||||||
# Class variables or attributes
|
# Class variables or attributes
|
||||||
def __init__(self) -> None:
|
def __init__(self, message_logging: bool = True) -> None:
|
||||||
|
self.message_logging = message_logging
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def log_pre_api_call(self, model, messages, kwargs):
|
def log_pre_api_call(self, model, messages, kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue