(fix) improve litellm.set_verbose=True logging

This commit is contained in:
ishaan-jaff 2023-11-01 16:11:44 -07:00
parent 73cd0f3778
commit 1d0ce77baf

View file

@ -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)}"
)