mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
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:
parent
143b9e7040
commit
1a329e8972
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue