From 7de87c845b9ccab31fbf1b02b0431e5d87bc2ea5 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 17 Nov 2023 14:42:50 -0800 Subject: [PATCH] (feat) improve logging - show model_call_details --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index c32e05c3e..0d44749a4 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -624,7 +624,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"RAW RESPONSE: {self.model_call_details}\n\n") + print_verbose(f"RAW RESPONSE:\n{self.model_call_details.get('original_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)}" )