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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: fix linting errors
Krrish Dholakiac583cbdbcd02
diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.pyindex b123514dd20..9fee97bd788 100644--- a/litellm/llms/custom_httpx/http_handler.py+++ b/litellm/llms/custom_httpx/http_handler.py@@ -111,11 +111,9 @@ class AsyncHTTPHandler:finally:await new_client.aclose()except httpx.TimeoutException:- if data is None:- data = {}raise litellm.Timeout(message=f"Connection timed out after {timeout} seconds.",- model=data.get("model"),+ model="default-model-name",llm_provider="litellm-httpx-handler",)except httpx.HTTPStatusError as e:@@ -221,11 +219,9 @@ class HTTPHandler:response = self.client.send(req, stream=stream)return responseexcept httpx.TimeoutException:- if data is None:- data = {}raise litellm.Timeout(message=f"Connection timed out after {timeout} seconds.",- model=data.get("model"),+ model="default-model-name",llm_provider="litellm-httpx-handler",)except Exception as e:diff --git a/litellm/llms/predibase.py b/litellm/llms/predibase.pyindex 62dcebb8c1e..68c52ef2e36 100644--- a/litellm/llms/predibase.py+++ b/litellm/llms/predibase.py@@ -487,7 +487,7 @@ class PredibaseChatCompletion(BaseLLM):headers=headers,data=json.dumps(data),stream=stream,- timeout=timeout,+ timeout=timeout, # type: ignore)_response = CustomStreamWrapper(response.iter_lines(),@@ -502,7 +502,7 @@ class PredibaseChatCompletion(BaseLLM):url=completion_url,headers=headers,data=json.dumps(data),- timeout=timeout,+ timeout=timeout, # type: ignore)return self.process_response(model=model,