From 1d0ce77bafc741bfa48cba47a3391406c99f8eba Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 1 Nov 2023 16:11:44 -0700 Subject: [PATCH] (fix) improve litellm.set_verbose=True logging --- litellm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 4ef1b38d6e..710ec6afc2 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -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)}" )