forked from phoenix/litellm-mirror
(fix) ssl changes
This commit is contained in:
parent
f9d4505ea0
commit
9b78bbc6ea
2 changed files with 3 additions and 3 deletions
|
@ -273,7 +273,7 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
model_response: ModelResponse,
|
||||
model: str):
|
||||
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:
|
||||
# Check if the request was successful (status code 200)
|
||||
if response.status != 200:
|
||||
raise OpenAIError(status_code=response.status, message=await response.text())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue