mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
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
This commit is contained in:
parent
cec3e9e7d4
commit
220e3e2779
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue