From ba0a328196396243e51db63335846633993dde5d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 23 Sep 2024 11:28:17 -0700 Subject: [PATCH] fix: Disable SSL verification for LiteLLM client sessions --- aider/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/main.py b/aider/main.py index 81783692f..d83c921c6 100644 --- a/aider/main.py +++ b/aider/main.py @@ -376,8 +376,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if not args.verify_ssl: import httpx + os.environ["SSL_VERIFY"] = "" litellm._load_litellm() litellm._lazy_module.client_session = httpx.Client(verify=False) + litellm._lazy_module.aclient_session = httpx.AsyncClient(verify=False) if args.dark_mode: args.user_input_color = "#32FF32"