mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) ssl for acompletion with openai
This commit is contained in:
parent
41c94d50e2
commit
f9d4505ea0
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class OpenAIChatCompletion(BaseLLM):
|
||||||
data: dict, headers: dict,
|
data: dict, headers: dict,
|
||||||
model_response: ModelResponse):
|
model_response: ModelResponse):
|
||||||
async with aiohttp.ClientSession() as session:
|
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()
|
response_json = await response.json()
|
||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
raise OpenAIError(status_code=response.status, message=response.text)
|
raise OpenAIError(status_code=response.status, message=response.text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue