fix(http_handler.py): add bool check for os.getenv verif ssl value

This commit is contained in:
Krrish Dholakia 2024-06-01 14:07:41 -07:00
parent 22a0c400dd
commit f1ce7bb300

View file

@ -107,7 +107,7 @@ class HTTPHandler:
http_proxy = os.getenv("HTTP_PROXY", None) http_proxy = os.getenv("HTTP_PROXY", None)
https_proxy = os.getenv("HTTPS_PROXY", None) https_proxy = os.getenv("HTTPS_PROXY", None)
no_proxy = os.getenv("NO_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 sync_proxy_mounts = None
if http_proxy is not None and https_proxy is not None: if http_proxy is not None and https_proxy is not None: