From f1ce7bb300341e24d2e26e02b3543c793b865c06 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 1 Jun 2024 14:07:41 -0700 Subject: [PATCH] fix(http_handler.py): add bool check for os.getenv verif ssl value --- litellm/llms/custom_httpx/http_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.py index 4f312a351..8d914eccb 100644 --- a/litellm/llms/custom_httpx/http_handler.py +++ b/litellm/llms/custom_httpx/http_handler.py @@ -107,7 +107,7 @@ class HTTPHandler: http_proxy = os.getenv("HTTP_PROXY", None) https_proxy = os.getenv("HTTPS_PROXY", None) no_proxy = os.getenv("NO_PROXY", None) - ssl_verify = os.getenv("SSL_VERIFY", litellm.ssl_verify) + ssl_verify = bool(os.getenv("SSL_VERIFY", litellm.ssl_verify)) sync_proxy_mounts = None if http_proxy is not None and https_proxy is not None: