mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(utils.py): move info statement to debug
This commit is contained in:
parent
dce96478c7
commit
30f57e7aa5
1 changed files with 11 additions and 13 deletions
|
@ -1207,7 +1207,7 @@ class Logging:
|
||||||
# User Logging -> if you pass in a custom logging function
|
# User Logging -> if you pass in a custom logging function
|
||||||
print_verbose(
|
print_verbose(
|
||||||
f"RAW RESPONSE:\n{self.model_call_details.get('original_response', self.model_call_details)}\n\n",
|
f"RAW RESPONSE:\n{self.model_call_details.get('original_response', self.model_call_details)}\n\n",
|
||||||
log_level="INFO",
|
log_level="DEBUG",
|
||||||
)
|
)
|
||||||
if self.logger_fn and callable(self.logger_fn):
|
if self.logger_fn and callable(self.logger_fn):
|
||||||
try:
|
try:
|
||||||
|
@ -10575,28 +10575,26 @@ def print_args_passed_to_litellm(original_function, args, kwargs):
|
||||||
|
|
||||||
args_str = ", ".join(map(repr, args))
|
args_str = ", ".join(map(repr, args))
|
||||||
kwargs_str = ", ".join(f"{key}={repr(value)}" for key, value in kwargs.items())
|
kwargs_str = ", ".join(f"{key}={repr(value)}" for key, value in kwargs.items())
|
||||||
print_verbose("\n", log_level="INFO") # new line before
|
print_verbose(
|
||||||
print_verbose("\033[92mRequest to litellm:\033[0m", log_level="INFO")
|
"\n",
|
||||||
|
) # new line before
|
||||||
|
print_verbose(
|
||||||
|
"\033[92mRequest to litellm:\033[0m",
|
||||||
|
)
|
||||||
if args and kwargs:
|
if args and kwargs:
|
||||||
print_verbose(
|
print_verbose(
|
||||||
f"\033[92mlitellm.{original_function.__name__}({args_str}, {kwargs_str})\033[0m",
|
f"\033[92mlitellm.{original_function.__name__}({args_str}, {kwargs_str})\033[0m"
|
||||||
log_level="INFO",
|
|
||||||
)
|
)
|
||||||
elif args:
|
elif args:
|
||||||
print_verbose(
|
print_verbose(
|
||||||
f"\033[92mlitellm.{original_function.__name__}({args_str})\033[0m",
|
f"\033[92mlitellm.{original_function.__name__}({args_str})\033[0m"
|
||||||
log_level="INFO",
|
|
||||||
)
|
)
|
||||||
elif kwargs:
|
elif kwargs:
|
||||||
print_verbose(
|
print_verbose(
|
||||||
f"\033[92mlitellm.{original_function.__name__}({kwargs_str})\033[0m",
|
f"\033[92mlitellm.{original_function.__name__}({kwargs_str})\033[0m"
|
||||||
log_level="INFO",
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
print_verbose(
|
print_verbose(f"\033[92mlitellm.{original_function.__name__}()\033[0m")
|
||||||
f"\033[92mlitellm.{original_function.__name__}()\033[0m",
|
|
||||||
log_level="INFO",
|
|
||||||
)
|
|
||||||
print_verbose("\n") # new line after
|
print_verbose("\n") # new line after
|
||||||
except:
|
except:
|
||||||
# This should always be non blocking
|
# This should always be non blocking
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue