From 61e2f5fbd35d945e9794da9420f04630bbff8a2a Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Wed, 11 Feb 2026 12:13:47 +0000 Subject: [PATCH] proxy fixes --- litellm/proxy/proxy_cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.py index 2bc1c8f8e98..6b781f74f0b 100644 --- a/litellm/proxy/proxy_cli.py +++ b/litellm/proxy/proxy_cli.py @@ -307,7 +307,12 @@ class ProxyInitializationHelpers: """Helper function to determine the event loop type based on platform""" if sys.platform in ("win32", "cygwin", "cli"): return None # Let uvicorn choose the default loop on Windows - return "uvloop" + try: + import uvloop # noqa: F401 + + return "uvloop" + except ImportError: + return None # Fall back to default asyncio loop (e.g. Python 3.14 where uvloop is unavailable) @click.command()