From 057c774c140b6badf64658ca0914900b49b710dd Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 17 Mar 2025 16:42:32 -0700 Subject: [PATCH] fix(http_handler.py): fix typing error --- litellm/llms/custom_httpx/http_handler.py | 1 - litellm/types/llms/custom_http.py | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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]