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(http_handler.py): fix typing error

Krrish Dholakia057c774c140b
diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.py
index cafa530130f..34d70434d54 100644
--- a/litellm/llms/custom_httpx/http_handler.py
+++ b/litellm/llms/custom_httpx/http_handler.py
@@ -6,7 +6,6 @@ from typing import TYPE_CHECKING, Any, Callable, List, Mapping, Optional, Union
import httpx
from httpx import USE_CLIENT_DEFAULT, AsyncHTTPTransport, HTTPTransport
-from httpx._types import VerifyTypes
import litellm
from litellm.litellm_core_utils.logging_utils import track_llm_api_timing
diff --git a/litellm/types/llms/custom_http.py b/litellm/types/llms/custom_http.py
index 33b73928502..5eec187dd42 100644
--- a/litellm/types/llms/custom_http.py
+++ b/litellm/types/llms/custom_http.py
@@ -1,6 +1,6 @@
+import ssl
from enum import Enum
-
-import litellm
+from typing import Union
class httpxSpecialProvider(str, Enum):
@@ -19,3 +19,6 @@ class httpxSpecialProvider(str, Enum):
SecretManager = "secret_manager"
PassThroughEndpoint = "pass_through_endpoint"
PromptFactory = "prompt_factory"
+
+
+VerifyTypes = Union[str, bool, ssl.SSLContext]