From 220e3e2779ee549a4d438c180d979f97feda578c Mon Sep 17 00:00:00 2001 From: BillionClaw <267901332+BillionClaw@users.noreply.github.com> Date: Wed, 18 Mar 2026 18:41:56 +0800 Subject: [PATCH] fix: remove noisy Provider List log message causing log flooding The print statement for 'Provider List: https://docs.litellm.ai/docs/providers' was being triggered repeatedly when using non-OpenAI models (like OpenRouter), causing log flooding. The error message already contains the documentation link, so this separate print statement is redundant. Fixes #23879 --- litellm/litellm_core_utils/get_llm_provider_logic.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/litellm/litellm_core_utils/get_llm_provider_logic.py b/litellm/litellm_core_utils/get_llm_provider_logic.py index 36218417377..97462fc9b02 100644 --- a/litellm/litellm_core_utils/get_llm_provider_logic.py +++ b/litellm/litellm_core_utils/get_llm_provider_logic.py @@ -460,12 +460,6 @@ def get_llm_provider( # noqa: PLR0915 elif model.startswith("sap/"): custom_llm_provider = "sap" if not custom_llm_provider: - if litellm.suppress_debug_info is False: - print() # noqa - print( # noqa - "\033[1;31mProvider List: https://docs.litellm.ai/docs/providers\033[0m" # noqa - ) # noqa - print() # noqa error_str = f"LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model={model}\n Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: https://docs.litellm.ai/docs/providers" # maps to openai.NotFoundError, this is raised when openai does not recognize the llm raise litellm.exceptions.BadRequestError( # type: ignore