diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.py index 38e177eaf00..b7afcc0d905 100644 --- a/litellm/proxy/proxy_cli.py +++ b/litellm/proxy/proxy_cli.py @@ -479,6 +479,12 @@ class ProxyInitializationHelpers: @staticmethod def _get_loop_type(): + """Return the uvicorn event-loop type for the current platform. + + Returns ``None`` on Windows (uvicorn default), ``"asyncio"`` when + ``LITELLM_DISABLE_UVLOOP`` is set to ``1``, ``true``, or ``yes``, and + ``"uvloop"`` otherwise. + """ if sys.platform in ("win32", "cygwin", "cli"): return None if os.environ.get("LITELLM_DISABLE_UVLOOP", "").strip().lower() in (