Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: fix linting error

Krrish Dholakiaed42b55a845d
diff --git a/litellm/router.py b/litellm/router.py
index e60f05d844a..d129ee556b4 100644
--- a/litellm/router.py
+++ b/litellm/router.py
@@ -3133,8 +3133,7 @@ class Router:
try:
# First, try to get the current event loop
- loop = asyncio.get_running_loop()
-
+ _ = asyncio.get_running_loop()
# If we're already in an event loop, run in a separate thread
# to avoid nested event loop issues
with ThreadPoolExecutor(max_workers=1) as executor: