From f9d4505ea07071052940e2cb20ca0f149c740a9d Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 10 Nov 2023 15:55:03 -0800 Subject: [PATCH] (fix) ssl for acompletion with openai --- litellm/llms/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/openai.py b/litellm/llms/openai.py index fcfdd27338a..c982d01e42c 100644 --- a/litellm/llms/openai.py +++ b/litellm/llms/openai.py @@ -257,7 +257,7 @@ class OpenAIChatCompletion(BaseLLM): data: dict, headers: dict, model_response: ModelResponse): async with aiohttp.ClientSession() as session: - async with session.post(api_base, json=data, headers=headers) as response: + async with session.post(api_base, json=data, headers=headers, ssl=False) as response: response_json = await response.json() if response.status != 200: raise OpenAIError(status_code=response.status, message=response.text)