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:
0xallam
2026-06-08 02:38:49 +03:00
committed by Ahmed Allam
parent 143b9e7040
commit 1a329e8972
+1
View File
@@ -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: