File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
litellm/litellm_core_utils Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -996,16 +996,23 @@ def post_call(
996
996
self .model_call_details ["additional_args" ] = additional_args
997
997
self .model_call_details ["log_event_type" ] = "post_api_call"
998
998
999
+ if self .litellm_request_debug :
1000
+ attr = "warning"
1001
+ else :
1002
+ attr = "debug"
1003
+
999
1004
if json_logs :
1000
- verbose_logger .debug (
1005
+ callattr = getattr (verbose_logger , attr )
1006
+ callattr (
1001
1007
"RAW RESPONSE:\n {}\n \n " .format (
1002
1008
self .model_call_details .get (
1003
1009
"original_response" , self .model_call_details
1004
1010
)
1005
1011
),
1006
1012
)
1007
1013
else :
1008
- print_verbose (
1014
+ callattr = getattr (verbose_logger , attr )
1015
+ callattr (
1009
1016
"RAW RESPONSE:\n {}\n \n " .format (
1010
1017
self .model_call_details .get (
1011
1018
"original_response" , self .model_call_details
You can’t perform that action at this time.
0 commit comments