Suppress LiteLLM stdout banner spam
litellm.suppress_debug_info silences two unsolicited print() calls in LiteLLM core: the "Provider List: https://docs.litellm.ai/docs/providers" banner emitted by get_llm_provider_logic and the "Give Feedback / Get Help" + "If you need to debug this error, use litellm._turn_on_debug()" pair emitted by exception_mapping_utils on every LiteLLM exception. Both are unconditional print() calls, not logger output, so log-level config can't catch them. LiteLLM's own router and proxy_server set the same flag for the same reason.
This commit is contained in:
@@ -102,6 +102,7 @@ def _configure_litellm_compatibility() -> None:
|
||||
litellm.modify_params = True
|
||||
litellm.turn_off_message_logging = True
|
||||
litellm.disable_streaming_logging = True
|
||||
litellm.suppress_debug_info = True
|
||||
|
||||
|
||||
def _configure_litellm_default(name: str, value: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user