()
| 94 | |
| 95 | # keep provider logging quiet in normal operation |
| 96 | def turn_off_logging(): |
| 97 | os.environ["LITELLM_LOG"] = "ERROR" # only errors |
| 98 | litellm.suppress_debug_info = True |
| 99 | # Silence **all** LiteLLM sub-loggers (utils, cost_calculator…) |
| 100 | for name in logging.Logger.manager.loggerDict: |
| 101 | if name.lower().startswith("litellm"): |
| 102 | logging.getLogger(name).setLevel(logging.ERROR) |
| 103 | |
| 104 | |
| 105 | def set_litellm_params(): |