mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) improve litellm.set_verbose=True logging
This commit is contained in:
parent
73cd0f3778
commit
1d0ce77baf
1 changed files with 2 additions and 2 deletions
|
@ -280,7 +280,7 @@ class Logging:
|
|||
self.model_call_details["model"] = model
|
||||
|
||||
# User Logging -> if you pass in a custom logging function
|
||||
print_verbose(f"model call details: {self.model_call_details}")
|
||||
print_verbose(f"MODEL CALL INPUT: {self.model_call_details}\n\n")
|
||||
if self.logger_fn and callable(self.logger_fn):
|
||||
try:
|
||||
self.logger_fn(
|
||||
|
@ -375,7 +375,7 @@ class Logging:
|
|||
self.model_call_details["log_event_type"] = "post_api_call"
|
||||
|
||||
# User Logging -> if you pass in a custom logging function
|
||||
print_verbose(f"model call details: {self.model_call_details}")
|
||||
print_verbose(f"RAW RESPONSE: {self.model_call_details}\n\n")
|
||||
print_verbose(
|
||||
f"Logging Details Post-API Call: logger_fn - {self.logger_fn} | callable(logger_fn) - {callable(self.logger_fn)}"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue