From e0ea72b89e849459269ff70d89a1e21054b13cb6 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 19 Jun 2026 12:59:58 -0400 Subject: [PATCH] fix: propagate ssl_verify through BaseLLMAIOHTTPHandler --- litellm/llms/custom_httpx/aiohttp_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/llms/custom_httpx/aiohttp_handler.py b/litellm/llms/custom_httpx/aiohttp_handler.py index 93b6c563dc1..bbfd509bd5e 100644 --- a/litellm/llms/custom_httpx/aiohttp_handler.py +++ b/litellm/llms/custom_httpx/aiohttp_handler.py @@ -38,8 +38,10 @@ class BaseLLMAIOHTTPHandler: client_session: Optional[aiohttp.ClientSession] = None, transport: Optional[LiteLLMAiohttpTransport] = None, connector: Optional[aiohttp.BaseConnector] = None, + ssl_verify: Optional[Union[bool, str]] = None, ): self.client_session = client_session + self.ssl_verify = ssl_verify self._owns_session = ( client_session is None ) # Track if we own the session for cleanup @@ -61,7 +63,7 @@ class BaseLLMAIOHTTPHandler: # Create a transport using AsyncHTTPHandler's logic try: - self.transport = AsyncHTTPHandler._create_aiohttp_transport() + self.transport = AsyncHTTPHandler._create_aiohttp_transport(ssl_verify=self.ssl_verify) self._owns_transport = True return self.transport except Exception: