refactor(proxy_server.py): print statement showing how to add debug for logs

This commit is contained in:
Krrish Dholakia 2023-11-03 17:41:02 -07:00
parent 6c4816e214
commit 4e1885734a
8 changed files with 76 additions and 207 deletions

View file

@ -2757,10 +2757,11 @@ def exception_type(
):
global user_logger_fn, liteDebuggerClient
exception_mapping_worked = False
print()
print("\033[1;31mGive Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new\033[0m")
print("LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.")
print()
if litellm.suppress_debug_info is False:
print()
print("\033[1;31mGive Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new\033[0m")
print("LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.")
print()
try:
if isinstance(original_exception, OriginalError):
# Handle the OpenAIError