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 mypy litellm_timeout_fix

Sameer Kankute34d4c5d3fc08
diff --git a/litellm/main.py b/litellm/main.py
index 09868cb794a..ea41919e19e 100644
--- a/litellm/main.py
+++ b/litellm/main.py
@@ -367,7 +367,7 @@ class AsyncCompletions:
@tracer.wrap()
@client
-async def acompletion(
+async def acompletion( # noqa: PLR0915
model: str,
# Optional OpenAI params: see https://platform.openai.com/docs/api-reference/chat/create
messages: List = [],
@@ -637,7 +637,7 @@ async def acompletion(
loop=loop
) # sets the logging event loop if the user does sync streaming (e.g. on proxy for sagemaker calls)
return response
- except asyncio.TimeoutError as e:
+ except asyncio.TimeoutError:
custom_llm_provider = custom_llm_provider or "openai"
from litellm.exceptions import Timeout
raise Timeout(